Difference between revisions of "Abs"
(see also) |
|||
Line 11: | Line 11: | ||
− | For a [[Complex Numbers|complex number]], ''a + bj'', <code>[[Abs]](x)</code> returns the magnitude, equal to < | + | For a [[Complex Numbers|complex number]], ''a + bj'', <code>[[Abs]](x)</code> returns the magnitude, equal to <ldcmath>\sqrt{a^2+b^2}</ldcmath>. |
= Complex numbers = | = Complex numbers = |
Revision as of 00:43, 14 May 2015
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 <ldcmath>\sqrt{a^2+b^2}</ldcmath>.
Complex numbers
A complex number can be written in standard (cartesian) form as [math]\displaystyle{ a + b j }[/math], or in polar form as [math]\displaystyle{ r e^{\theta j} }[/math]. Given a complex number, x, Abs(x)
gives r, the magnitude from the polar form. The [math]\displaystyle{ \theta }[/math] is given by either ComplexRadians (or ComplexDegrees).
Examples
See Also
Comments
Enable comment auto-refresher