naginterfaces.library.ieee.is_​nan

naginterfaces.library.ieee.is_nan(x)[source]

is_nan determines whether a floating-point number is a NaN (Not A Number).

For full information please refer to the NAG Library document for x07ab

https://support.nag.com/numeric/nl/nagdoc_30.1/flhtml/x07/x07abf.html

Parameters
xfloat

The number whose status is to be determined.

Returns
isnanbool

if and only if is a NaN, and otherwise.

Notes

is_nan returns if and only if is a NaN, and returns otherwise.

References

IEEE, 2008, Standard for Floating-Point Arithmetic (IEEE Standard 754-2008), IEEE, New York.