bugGNU Octave - Bugs: bug #35680, mod does not warn when losing...

 
 

bug #35680: mod does not warn when losing precision

Submitted by:  None
Submitted on:  Thu 01 Mar 2012 04:21:20 PM UTC  
 
Category: InterpreterSeverity: 2 - Minor
Priority: 3 - LowItem Group: Incorrect Result
Status: Wont FixAssigned to: None
Originator Name: Originator Email: -unavailable-
Open/Closed: ClosedRelease: 3.2.4
Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 22 Dec 2015 04:37:13 PM UTC, comment #2:

Closing as won't fix, Octave is working as expected with numerical values with limited precision.

The symbolic package is now fully functional, so if you want arbitrary precision the vpa class takes care of this type of problem:

Mike Miller <mtmiller>
Project Administrator
Thu 01 Mar 2012 04:32:14 PM UTC, comment #1:

This essentially the same as bug #32924. I'm marking it as a duplicate.

I'm also lowering the priority. Octave is not a CAS and integers have limited precision.

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Thu 01 Mar 2012 04:21:20 PM UTC, original submission:

I've found an error when computing mod97.

FORMULA: 98 - mod(data, 97)

EXAMPLE: 98 - mod(60392010507000000, 97)
OCTAVE ANSWER: 50

But it should be 47, not 50! overflow?

I think the mod() formula should launch a warning or something else to indicate problem.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by jordigh (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 9 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 22 Dec 2015 04:37:13 PM UTCmtmillerStatusDuplicate=>Wont Fix
      Open/ClosedOpen=>Closed
    Thu 01 Mar 2012 07:01:46 PM UTCrik5Carbon-CopyRemoved 72865=>-
    Thu 01 Mar 2012 07:01:32 PM UTCrik5Priority5 - Normal=>3 - Low
    Thu 01 Mar 2012 04:33:42 PM UTCjordighOperating SystemMicrosoft Windows=>Any
    Thu 01 Mar 2012 04:32:52 PM UTCjordighSeverity3 - Normal=>2 - Minor
      StatusNone=>Duplicate
      Summarymod97 incorrect result=>mod does not warn when losing precision
    Thu 01 Mar 2012 04:32:14 PM UTCjordighDependencies-=>Depends on bugs #32924

    Back to the top


    Powered by Savane 3.1-cleanup1