bugGNU Octave - Bugs: bug #41894, mod output ML incompatible

 
 

bug #41894: mod output ML incompatible

Submitted by:  Juan Pablo Carbajal <juanpi>
Submitted on:  Tue 18 Mar 2014 10:41:14 AM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: FixedAssigned to: None
Originator Name: juanpiOpen/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 12 Nov 2015 03:03:19 PM UTC, comment #2:

I also see this fixed now. Closing as such.

Also, ML is a programming language https://en.wikipedia.org/wiki/ML_%28programming_language%29 and not short of Matlab.

Carnë Draug <carandraug>
Project Member
Thu 12 Nov 2015 07:01:59 AM UTC, comment #1:

Checking with 4.0.0 on Windows:

Avinoam Kalma <avinoam>
Project Member
Tue 18 Mar 2014 10:41:14 AM UTC, original submission:

In the mailing list we have a report about MOD. The matlab implementation indeed corrects the result when roundoff error generates an answer different than expected. Example follows

Reading the help of mod in matlab it says that the result of MOD
is x - n.*Y with n = floor(x./Y). If Y is not an integer and the quotient x./Y is within roundoff error of an integer, then n is that integer.

So indeed matlab is giving a result considering roundoff error, I assume they do something like

We could issue a warning as well.

This bug is related to bug #32924

Juan Pablo Carbajal <juanpi>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by avinoam (Posted a comment)
  • -unavailable- added by juanpi (Submitted the item)
  •  

    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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 12 Nov 2015 03:03:19 PM UTCcarandraugStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1