Complex<T>.IsNaN Method

Indicates whether a complex number is undefined.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static bool IsNaN(
	Complex<T> z
)

Parameters

z  Complex<T>
A complex number.

Return Value

Boolean
true if the real or imaginary part is T.NaN; otherwise false.

Remarks

Use this method rather than testing for equality with NaN. By definition, NaN is not equal to any other number, including itself.

If the operand type does not support IEEE special values, this method returns false.

See Also