From bug-request at octave dot org Mon Feb 7 09:40:52 2005 Subject: Re: Inconsistency in complex division by zero From: "Dmitri A. Sergatskov" To: David dot Bateman at motorola dot com CC: bug at octave dot org Date: Mon, 07 Feb 2005 08:43:27 -0700 David Bateman wrote: > There is an inconsistency in the division by zero between octave and > matlab. Consider 1i/0 that returns "NaN - NaNi" for octave and "NaN > -Infi" for matlab. The Matlab return value makes much more sense that > the octave one as it treats the real and imaginary parts separately.. > Tested against octave 2.1.64 and matlab 7.0sp1. > I think the result depends on gcc version used. It may also be related to the gcc bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18902 > Regards > David > Regards, Dmitri. -- ------------------------------------------------------------- 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 -------------------------------------------------------------