Difference between revisions of "ComplexRadians"
(Created page with "Returns the phase of a complex number in radians. A complex number can be written in polar form as <math>r e^{\theta j}</math>. Given a complex number, x, <...") |
m (closing tag) |
||
Line 7: | Line 7: | ||
:<code>ComplexRadians(5+5j)</code> → 0.7854 ''{This is <math>\pi/4</math>}'' | :<code>ComplexRadians(5+5j)</code> → 0.7854 ''{This is <math>\pi/4</math>}'' | ||
:<code>ComplexRadians(1j)</code> → 1.571 ''{This is <math>\pi/2</math>}'' | :<code>ComplexRadians(1j)</code> → 1.571 ''{This is <math>\pi/2</math>}'' | ||
− | :<code>ComplexRadians(-1j)<code> → -1.571 | + | :<code>ComplexRadians(-1j)</code> → -1.571 |
:<code>ComplexRadians(-2)</code> → -3.142 | :<code>ComplexRadians(-2)</code> → -3.142 | ||
:<code>ComplexRadians(.1)</code> → 0 | :<code>ComplexRadians(.1)</code> → 0 |
Revision as of 18:08, 11 April 2013
Returns the phase of a complex number in radians.
A complex number can be written in polar form as [math]\displaystyle{ r e^{\theta j} }[/math]. Given a complex number, x, ComplexRadians
returns [math]\displaystyle{ \theta }[/math], the result being expressed in radians in the range of [math]\displaystyle{ [-\pi,\pi) }[/math].
Examples
ComplexRadians(5+5j)
→ 0.7854 {This is [math]\displaystyle{ \pi/4 }[/math]}ComplexRadians(1j)
→ 1.571 {This is [math]\displaystyle{ \pi/2 }[/math]}ComplexRadians(-1j)
→ -1.571ComplexRadians(-2)
→ -3.142ComplexRadians(.1)
→ 0
See Also
- ComplexDegrees
- Complex Numbers
- Abs -- for the magnitude, r
- Degrees, Radians
Comments
Enable comment auto-refresher