Next: sccomplex, Previous: scanf, Up: Internal Routines [Contents][Index]

`scb, `

`x`, `s`, `c` [, /even, /odd]

Sine-cosine inverse transform (in the first dimension) to

. `x`

and `s`

must contain the sine
and cosine coefficients, respectively, as returned by `c``sc`

: element
`i`

corresponds to wavelength `num_elem(`

.
`x`)/i

Because of the way the sine and cosine transform values are stored, it
is not possible to unambiguously determine the number of data elements
that

should get. If the first dimension of the sine and
cosine transforms contains `x``n`

elements, then these might have come
from an

with `x``2*n`

or `2*n + 1`

elements in the
first dimension. If the highest-frequency sine value(s) is/are equal to
zero, then it is likely that the results derive from transforms
involving an even number of data points, though the zero(s) may also be
due to an odd number of very fortuitous data values.

To resolve this difficulty, the following rules are followed: If
`/even`

is specified, then assume `n`

is even. If `/odd`

is specified, then assume `n`

is odd. If neither

nor `/even`

are specified, then inspect the
highest-frequency sine transform (`/odd`

) values: if all of them
are equal to zero, then assume `s``n`

is even, otherwise odd.

Reverse: sc

• scb Details: |