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: cadd cdiv cmul

Quantlet: csub
Description: Complex subtraction two arrays of complex numbers

Usage: z = csub (x, y)
Input:
x n x p x d1 x ... x dn complex array
y n x p x d1 x ... x dn complex array
Output:
z n x p x d1 x ... x dn complex array

Example:
library("math")
x = complex(#(1,3), #(2,1))
y = complex(#(2,3), #(1,4))
csub(x ,y)

Result:
Contents of z.re
[1,]       -1
 [2,]        0
Contents of z.im
[1,]        1
 [2,]       -3



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