CLN etc Instructions |
CLN cseries start end newcseries newstart
CEXP cseries start end newcseries newstart
CONJUGATE cseries start end newcseries newstart
CSQRT cseries start end newcseries newstart
CMVE cseries start end newcseries newstart
CSCALE( option ) cseries start end newcseries newstart
Respectively, these take the complex log(e), complex exponential, complex conjugate, and complex square root of a series; copy data from one series to another; and scale complex series by a constant.
Parameters
cseries |
source series |
start, end |
range to transform, by default, range of cseries |
newcseries |
result series, by default, overwrites cseries |
newcstart |
start for newcseries, by default, start |
Options (for CSCALE only)
SCALE=real expression
CSCALE multiplies each entry of cseries by the value of the real expression to procedure newcseries.
Example
This is a segment of the procedure @SPECFORE, which computes forecasts using spectral methods. It takes the log of series 3 (a spectral density), applies an inverse transform to the series, sets its negative "lags" to zero, transforms the series back, then exponentiates the series and inverse transforms it again. The CSET instruction at the end normalizes series 3 to a value of 1.0 in entry 1.
cln 3
ift 3
cset 3 = %z(t,3)*(t<=ordinate/2)
fft 3
cexp 3
ift 3
cset(scratch) 3 = %z(t,3)/%z(1,3)
Copyright © 2025 Thomas A. Doan