Section: Mathematical Functions
p = angle(c)
where c
is an n
-dimensional array of numerical type.
x
, its polar representation is
given by
and we can compute
angle
in the polar decomposition
of a complex number.
--> x = 3+4*i x = <complex> - size: [1 1] 3+ 4 i --> a = abs(x) a = <float> - size: [1 1] 5 --> t = angle(x) t = <float> - size: [1 1] 0.9272952 --> a*exp(i*t) ans = <complex> - size: [1 1] 3+ 4 i
M version contributor: M.W. Vogel 01-30-06