Gets the modulus or absolute value of a
DoubleComplex number.
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public ReadOnly Property Modulus As Double |
| C# |
|---|
public double Modulus { get; } |
| C++ |
|---|
public: double Modulus { double get (); } |
Value
The modulus of the DoubleComplex number.
Remarks
The modulus of a complex number is the
square root of the sum of the squares of its
real and imaginary components.
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.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The value provided for the modulus is negative. |