Generates a SINC function (sin(x)/x) in accordance with the specified parameters.
GSINC(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.
gsinc(200,0.1,5.0,-50.0)
creates a SINC function of 200 points spaced 0.1 x-units apart. The series is also be shifted by 50 x-units (the offset value) on the x-axis, and compressed by a factor of 5. Try generating this series: it is our favorite.
Except for the unity value at sin(0)/0, in SETRADIAN mode
gsinc(n, dx, f, p)
is equivalent to:
gsin(n, dx, f/(2*pi), p)/gline(n, dx, f, p)
and in SETDEGREE mode to:
gsin(n, dx, f/(2*pi), p)/gline(n, dx, f, p*pi/180)