Gets the magnitude (or absolute value) of a complex number

Syntax

Magnitude(x)

Example

Magnitude(3+4i)=5

Note

The Magnitude 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 | = Sqrt (a^{2} + b^{2})

The Magnitude and the Phase 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 FromPolar function.