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

Macro: 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 

Library: math
See also: creal cimag

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

Author: Sigbert Klinke, 970529
(C) MD*TECH Method and Data Technologies, 28.6.1999