Generates a natural logarithmic series (base e) in accordance with the specified parameters.
GLN(length, spacing, factor, offset)
GLOG(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.
gln(100, 0.1, 2, 5)
creates a logarithmic series of 100 points spaced 0.1 x-units apart. This series is also be shifted by five
glog(100, 0.1, 2, 5)
same as above.
The formula used to generate each point, n, in the series is as follows:
y[n] = log(spacing*factor*(n-1) + offset)
GLN and GLOG are identical.