Next: cdivcj()
Up: MacAnova Help File
Previous: cconj()
Contents
Usage:
Keywords:
time series, complex arithmetic
Usage
cdivc(cx1, cx2) computes the element wise complex ratio of fully complex
(pairs of columns constitute real and imaginary parts) matrices cx1 and
cx2. When either of 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.
cdivc(cx) is equivalent to cdivc(cx,cx), returning a result all of whose
elements are 1 + 0i, except for (0 + 0i)/(0 + 0i) ratios which are 0 +
0i.
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 all the series in cx2. Similarly when ncols(cx2)
<= 2, all the series in cx1 are divided by cx2.
Examples
Examples:
When ncols(cx1) = 2 and ncols(cx2) = 5, cdivc(cx1,cx2) is eqivalent to
cdivc(hconcat(cx1,cx1,cx1),hconcat(cx2,rep(0,nrows(cx2)))).
cdivc(1,cx) computes the complex reciprocal of cx.
Cross references
See also cdivcj(), hdivh(), hdivhj(), cprdc(), cprdcj(), hprdh(),
hprdhj(), 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
2005-08-12