<< Inf constructors functions ones >>

NaN


Creates an Not-a-Number


Syntax


NaN
nan
NaN(n)
NaN(n, m)

Input argument


n

a variable: n-by-n matrix

m

a variable: n-by-m matrix

Description


NaN returns the IEEE symbol NaN (Not a Number).

NaN is the result of operations which do not produce a well defined numerical result.

Beware, you must never compare NaN with NaN, in this case, please use isnan.

Examples


NaN

3 + NaN

NaN != NaN
isnan(NaN)

See also


isnan.

History


Version Description
1.0.0 initial version

Author


Allan CORNET

<< Inf constructors functions ones >>