From bug-octave-request at bevo dot che dot wisc dot edu Thu Jan 23 02:37:06 2003 Subject: Re: Trivial 0ctave bug From: Mirek Kwasniak To: "John W. Eaton" Cc: "Richard E. Borcherds" , bug-octave@bevo.che.wisc.edu Date: Thu, 23 Jan 2003 09:36:11 +0100 On Wed, Jan 22, 2003 at 02:15:30PM -0600, John W. Eaton wrote: > BTW, Matlab also seems to behave this way, so any fix is likely to > break compatibility. Yes we have compatibility, in fuctions rem, mod remainder can be greater then divisor :) In a message: http://groups.google.pl/groups?selm=eeb79a1.-1%40WebX.raydaftYaTP In MATLAB version 6.1 and 6.5, >> rem(3.0782817340933185e+099,1e7) ans = 4.856672230564323e+083 >> mod(3.0782817340933185e+099,1e7) ans = 4.856672230564323e+083 $ octave2.1 GNU Octave, version 2.1.43 (i386-pc-linux-gnu). octave2.1:1> rem(3.0782817340933185e+099,1e7) ans = 4.8567e+83 Mirek ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------