Next: ceiling()
Up: MacAnova Help File
Previous: cdivc()
Contents
Usage:
Keywords:
time series, complex arithmetic
Usage
cdivcj(cx1, cx2) computes the element wise complex ratio of fully
complex (pairs of columns constitute real and imaginary parts) matrices
cx1 and cconj(cx2). When either cx1 or cx2 has an odd number of
columns, it is augmented with a column of zeros before division.
Any ratio of the form (0 + 0i)/(0 + 0i) is returned as 0 + 0i. The ratio
of a non-zero element of cx1 and 0 + 0i is MISSING + MISSING*i.
cdivcj(cx) is equivalent to cdivcj(cx,cx).
When nrows(cx1) > 1 and nrows(cx2) > 1, nrows(cx1) = nrows(cx2) is
required. Otherwise, the single row in the short argument is implicitly
duplicated to match the number of rows in the other argument.
When cx1 represents a single complex series (ncols(cx1) <= 2), that
series is divided by the complex conjugates of all the series in cx2.
Similarly when ncols(cx2) <= 2, all the series in cx1 are divided by
cconj(cx2).
Examples
Examples:
When ncols(cx1) = 2 and ncols(cx2) = 5, cdivcj(cx1,cx2) is eqivalent
to cdivcj(hconcat(cx1,cx1,cx1),hconcat(cx2,rep(0,nrows(cx2)))).
cdivcj(1,cx) computes the complex reciprocal of cconj(cx).
Cross references
See also cdivc(), hdivh(), hdivhj(), cprdc(), cprdcj(), hprdh(),
hprdhj(), cconj(), hconcat(), rep(), nrows(), ncols().
See topic 'complex' for discussion of complex matrices in MacAnova.
See subtopic 'matrices:"complex_matrices" for a list of macros for
working with complex matrices.
Gary Oehlert
2006-01-30