From bug-request at octave dot org Mon Feb 7 08:56:20 2005 Subject: Re: Inconsistency in complex division by zero From: Andy Adler To: David Bateman cc: bug at octave dot org Date: Mon, 7 Feb 2005 10:00:42 -0500 (EST) On Mon, 7 Feb 2005, 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. Matlab 6.5 gives: >> 1i/0 Warning: Divide by zero. ans = NaN + Infi Which should it be? -- Andy Adler 1(613)562-5800x6218 ------------------------------------------------------------- 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 -------------------------------------------------------------