Computes the absolute value of a complex number.

Namespace:  Meta.Numerics
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 1.4.0.0 (1.4.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static double Abs(
	Complex z
)
Public Shared Function Abs ( _
	z As Complex _
) As Double
public:
static double Abs(
	Complex z
)

Parameters

z
Complex
The argument.

Return Value

The value of |z|.

Remarks

The absolute value of a complex number is the distance of the number from the origin in the complex plane. This is a compatible generalization of the definition of the absolute value of a real number.

See Also