(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Returns the phase of complex number «x» in radians.

A complex number can be written in polar form as $\displaystyle{ r e^{\theta j} }$. Given a complex number, «x», ComplexRadians returns $\displaystyle{ \theta }$, the result being expressed in radians in the range of $\displaystyle{ [-\pi,\pi) }$.

## Examples

ComplexRadians(5 + 5j) → 0.7854 {This is $\displaystyle{ \pi/4 }$}
ComplexRadians(1j) → 1.571 {This is $\displaystyle{ \pi/2 }$}
ComplexRadians(-1j) → -1.571
ComplexRadians(-2) → -3.142
ComplexRadians(.1) → 0

## History

This function was introduced in Analytica 4.5.