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 |
library("math") x = complex(#(1,3), #(2,1)) y = complex(#(2,3), #(1,4)) csub(x ,y)
Contents of z.re [1,] -1 [2,] 0 Contents of z.im [1,] 1 [2,] -3