Generates an arc-cosine series in accordance with the specified parameters.
GACOS(length, spacing, factor, offset)
length |
- |
An integer, the length of the output series. |
spacing |
- |
A real, the spacing (delta x) between each point on the |
factor |
- |
Optional. A real, the expansion factor along the |
offset |
- |
Optional. A real, the offset along |
A series.
gacos(100, .01, 2, .5)
creates an arc-cosine series of 100 points spaced .01 x-units apart. The series is also be shifted by .5 units (the offset value) on the x-axis, and compressed by a factor of 2.
The formula used to generate each point, n, in the series is as follows:
y[n] = ACOS(spacing • factor • (n-1) + offset)