Complex<T>.Magnitude Property
Gets the modulus or absolute value of a
complex number.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
The modulus of the complex number.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public T Magnitude { get; }
Property Value
TThe modulus of the complex number.
Remarks
The modulus of a complex number is the square root of the sum of the squares of its real and imaginary elements.
If you set the modulus of complex Zero, the result is a real number. Setting the modulus to a negative number results in an exception.
This property requires that the operand type support real arithmetic.
Exceptions
Argument | The value provided for the modulus is negative. |