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: creal cimag

Quantlet: complex
Description: Generates a complex array

Usage: z = complex (re {, im})
Input:
re n x p x d1 x ... x dn array real part of x
im n x p x d1 x ... x dn array imaginary part of x
Output:
z n x p x d1 x ... x dn complex array

Example:
library("math")
z = complex(0, 1)
z

Result:
//Generates the complex object sqrt(-1)
Contents of z.re
[1,]        0
Contents of z.im
[1,]        1



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