| Prev | Next | sinc |
| Syntax |
y = sinc(x) |
| Include: |
include spt\sinc.oms |
| See Also |
ARGUMENTS:
INPUTS:
x = MATRIX, any numerical type.
RETURN: MATRIX, sin(x)/x, DOUBLE.
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.
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 ]
}