diff --git a/lib/node_modules/@stdlib/math/base/special/sinc/README.md b/lib/node_modules/@stdlib/math/base/special/sinc/README.md index 189cfbf61ca7..f9aa00ada6b9 100644 --- a/lib/node_modules/@stdlib/math/base/special/sinc/README.md +++ b/lib/node_modules/@stdlib/math/base/special/sinc/README.md @@ -97,6 +97,91 @@ for ( i = 0; i < x.length; i++ ) { + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/math/base/special/sinc.h" +``` + +#### stdlib_base_sinc( x ) + +Computes the normalized [cardinal sine][sinc] of a `number`. + +```c +double y = stdlib_base_sinc( 0.5 ); +// returns ~0.637 +``` + +The function accepts the following arguments: + +- **x**: `[in] double` input value. + +```c +double stdlib_base_sinc( const double x ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/math/base/special/sinc.h" +#include + +int main( void ) { + const double x[] = { 0.0, 0.523, 0.785, 1.047, 3.14 }; + + double y; + int i; + for ( i = 0; i < 5; i++ ) { + y = stdlib_base_sinc( x[ i ] ); + printf( "sinc(%lf) = %lf\n", x[ i ], y ); + } +} +``` + +
+ + + +
+ + +