octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #31512] Problem with code on Linux octave 3.2.


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #31512] Problem with code on Linux octave 3.2.3 and 3.2.4/// OK on mac w/ 3.2.3
Date: Sat, 06 Nov 2010 15:01:42 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101028 Iceweasel/3.5.15 (like Firefox/3.5.15)

Follow-up Comment #9, bug #31512 (project octave):

Rik wrote: "If Matlab is playing tricks with the divisor it would be very
interesting to know that."

The current Matlab documentation for rem and mod says that it uses something
like

  x - y * floor (x / y)  (for rem, replace floor with fix)

and that

"If Y is not an integer and the quotient X./Y is within roundoff error of an
integer, then n is that integer."

So yes, I guess they are doing some tricks.  I'm not sure that is really the
best thing to do.  I mean, maybe the correct result is actually not an
integer.  So why perform the rounding ?  How can you know when that is
appropriate?result an integer.  But maybe for compatibility, we will have to
do the same.  Otherwise, I'm sure that we will just see complaints about the
difference.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?31512>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]