Complex::Magnitude Property
Gets the magnitude (or absolute value) of a complex number.
Assembly: System.Numerics (in System.Numerics.dll)
The Magnitude property is equivalent to the absolute value of a complex number. It specifies the distance from the origin (the intersection of the x-axis and the y-axis in the Cartesian coordinate system) to the two-dimensional point represented by a complex number. The absolute value is calculated as follows:
| a + bi | = Math::Sqrt(a * a + b * b)
If the calculation of the absolute value results in an overflow, this property returns either Double::PositiveInfinity or Double::NegativeInfinity.
The Magnitude and the Phase properties define the position of a point that represents a complex number in the polar coordinate system.
You can instantiate a complex number based on its polar coordinates instead of its Cartesian coordinates by calling the FromPolarCoordinates method.
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Windows Phone
Available since 8.1