NaN
NaN
is the IEEE arithmetic representation for Not-a-Number (NaN). NaN
s result from operations which have undefined numerical results.
NaN
:
NaN
, such as sqrt(NaN)
(+Inf)+(-Inf)
0
*Inf
0/0
and Inf/Inf
rem(x,y)
where y
is zero or x
is infinitymin([Inf NaN])
and max([Inf NaN])
NaN
s always return false, except ~= (not equal). Consequently, the statement NaN
~= NaN
is true while the statement NaN
== NaN
is false.
dbstop
,finite
,Inf
,isinf
,isnan
(c) Copyright 1994 by The MathWorks, Inc.