The absolute value of a number, or the magnitude of a complex number.

For a non-negative real number, Abs(x) returns «x».

For a negative real number, Abs(x) returns -«x».

For a complex number, a + bj, Abs(x) returns the magnitude, equal to $ \sqrt{a^2+b^2} $.

Complex numbers

A complex number can be written in standard (cartesian) form as $ a + b j $, or in polar form as $ r e^{\theta j} $. Given a complex number, «x», Abs(x) gives r, the magnitude from the polar form. The $ \theta $ is given by either ComplexRadians (or ComplexDegrees).


Abs(0) → 0
Abs(-0.123) → 0.123
Abs(4.534) → 4.534
Abs(-INF) → INF
Abs(-4-3j) → 5
Abs(1j) → 1

See Also


You are not allowed to post comments.