Imaginary<T>.IsNaN Method

Indicates whether an imaginary number is undefined.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
public static bool IsNaN(
	Imaginary<T> z
)

Parameters

z  Imaginary<T>
An imaginary 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