Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

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

Example:
library("math")
{r, phi} = cpolar(complex(1, 1))
r
phi

Result:
Contents of r
[1,]   1.4142
Contents of phi
[1,]   0.7854



Author: S. Klinke, 19970529
(C) MD*TECH Method and Data Technologies, 05.02.2006