DADiSP Worksheet Functions > Function Categories > Trigonometric Series Generation > GSINC

 

GSINC

Purpose:

Generates a SINC function (sin(x)/x) in accordance with the specified parameters.

Syntax:

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 x-axis.

factor

-

Optional. A real, the expansion factor along the x-axis. Defaults to 1.

offset

-

Optional. A real, the offset along x-axis, specified in radians in SETRADIAN mode, or degrees in SETDEGREE mode. Defaults to 0.

Returns:

A series.

Example:

gsinc(200,0.1,5.0,-50.0)

 

image\gsincpic01.gif

 

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.

Remarks:

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)

See Also:

SINC

TRIGNOMETRIC FUNCTION GENERATORS