automatic Inf+NaN*i conversion
Rolf Fabian
Rolf.Fabian at gmx.de
Fri Apr 25 04:21:19 CDT 2008
I consider the automatic conversion of input 'Inf+NaN*i'
to 'NaN-NaN*i' as a bug because this may lead to strange
illogical consequences.
octave-3.0.0.exe:1> x = [Inf+NaN*i,NaN+Inf*i]
x =
NaN - NaNi NaN + Infi
( If you consider the 1st element result 'NaN-NaNi' as intended,
can you please explain the meaning of the appearing minus sign? )
octave-3.0.0.exe:2> isnan(x)
ans =
1 1 # agree
Checking x for finiteness :
octave-3.0.0.exe:3> finite (x)
ans =
0 0 # agree
But the result of the following check contradicts
above result because 1st element of x cannot be
neither finite nor infinite !
octave-3.0.0.exe:4> isinf (x)
ans =
0 1 # disagree with respect to 1st element
R:
-----
Rolf Fabian
<r dot fabian at jacobs-university dot de>
--
View this message in context: http://www.nabble.com/automatic-Inf%2BNaN*i-conversion-tp16893696p16893696.html
Sent from the Octave - Bugs mailing list archive at Nabble.com.
More information about the Bug-octave
mailing list