Calculates the absolute value of a complex number.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public static double Abs(
	DoubleComplex c
)
Visual Basic (Declaration)
Public Shared Function Abs ( _
	c As DoubleComplex _
) As Double
Visual C++
public:
static double Abs(
	DoubleComplex c
)

Parameters

c
Type: CenterSpace.NMath.Core..::.DoubleComplex
A complex number.

Return Value

The absolute value of c.

Remarks

Absolute value uses the Euclidean (L2) Norm which is the square root of the sum of the squares of the real and imaginary parts. abs(c) = sqrt(c.Real^2 + c.Imag^2)

See Also