Special.sinc(u);
This function computes the unnormalized sinc function sinc(u) = sin(u)/u. The implementation utilizes a Taylor series approximation for small values of u. Plot of the function:
For more details, see Wikipedia.
sinc(0) // = 1 sinc(3) // = 0.0470400026866224
function sinc input Real u "Input argument"; output Real y "= sinc(u) = sin(u)/u"; end sinc;
Date | Description | ||
---|---|---|---|
June 22, 2015 |
|