Library: | math |
See also: | cconj |
Quantlet: | cpolar | |
Description: | Complex numbers in polar coordinates |
Usage: | {r, phi} = cpolar (x) | |
Input: | ||
x | n x p x d1 x ... x dn complex array | |
Output: | ||
r | Radius | |
phi | Angle |
library("math") {r, phi} = cpolar(complex(1, 1)) r phi
Contents of r [1,] 1.4142 Contents of phi [1,] 0.7854