Computes the absolute value of a complex number.
Namespace:
Meta.Numerics
Assembly:
Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax public static double Abs(
Complex z
)
Public Shared Function Abs (
z As Complex
) As Double
public:
static double Abs(
Complex z
)
static member Abs :
z : Complex -> float
Parameters
- z
- Type: Meta.NumericsComplex
The argument.
Return Value
Type:
DoubleThe 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