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