| NMathFunctionsAbs(DoubleComplex) Method |
Calculates the absolute value of a complex number.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static double Abs(
DoubleComplex c
)
Public Shared Function Abs (
c As DoubleComplex
) As Double
public:
static double Abs(
DoubleComplex c
)
static member Abs :
c : DoubleComplex -> float
Parameters
- c DoubleComplex
- A complex number.
Return Value
DoubleThe 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