Index-> contents reference index search Up-> SPT_HELP Mathematical Functions sinc Prev Next SPT_HELP-> SPTFunctionsByCategory Mathematical Functions Data Manipulation Functions SignalGeneratorMain AnalogFilterFunctions FIR Filter Design Window Functions IIR Filter Design FourierFunctions Plotting Functions Histogram Functions Mathematical Functions-> colavg colmsq colrms db10 db20 even logn powerof2 OtherMathStat sinc sinc Headings-> Description Example

The sinc(x) Function
 Syntax `y = sinc(`x`)` Include: `include spt\sinc.oms` See Also
``` ARGUMENTS:    INPUTS:       x = MATRIX, any numerical type.    RETURN:  MATRIX, sin(x)/x, DOUBLE. ```
Description ``` ```Compute 'sinc' function, sin(x)/x of matrix. Returns the element-wise 'sinc' function, sin(x)/x for matrix x. Input is coerced to double before processing.

Example ``` ```For Sclar Input: ``` O>sinc(0)     1.0000  ``` For Vectors: (See plot below) ``` O>x = seq(100)-50 O>y = sinc(x) O>ginit O>gplot(x,y) O>gtitle("sinc(x)") ``` For Matrices: ``` O>X = {[-1,0,1],[1,PI,2*PI]} O>sinc(X) { [     0.8415 ,     1.0000 ,     0.8415 ] [     0.8415 ,     0.0000 ,    -0.0000 ] } ```