The sinc function is equal to \(\sin(\pi x)/(\pi x)\) for any argument
\(x\ne 0\). sinc(0) takes the limit value 1, making sinc not
only everywhere continuous but also infinitely differentiable.
Note
Note the normalization factor of pi used in the definition.
This is the most commonly used definition in signal processing.
Use sinc(x/np.pi) to obtain the unnormalized sinc function
\(\sin(x)/x\) that is more common in mathematics.
Parameters:
xndarray
Array (possibly multi-dimensional) of values for which to calculate
sinc(x).
Returns:
outndarray
sinc(x), which has the same shape as the input.
Notes
The name sinc is short for "sine cardinal" or "sinus cardinalis".
The sinc function is used in various signal processing applications,
including in anti-aliasing, in the construction of a Lanczos resampling
filter, and in interpolation.
For bandlimited interpolation of discrete-time signals, the ideal
interpolation kernel is proportional to the sinc function.