diff --git a/lib/node_modules/@stdlib/math/base/special/besselj1/README.md b/lib/node_modules/@stdlib/math/base/special/besselj1/README.md index f5569203e83c..ec1dbf5daf8a 100644 --- a/lib/node_modules/@stdlib/math/base/special/besselj1/README.md +++ b/lib/node_modules/@stdlib/math/base/special/besselj1/README.md @@ -99,6 +99,94 @@ for ( i = 0; i < 100; i++ ) { + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/math/base/special/j1.h" +``` + +#### stdlib_base_j1( x ) + +Computes the [Bessel function of the first kind][bessel-first-kind] of order one at `x`. + +```c +double out = stdlib_base_j1( 0.0 ); +// returns 0.0 + +out = stdlib_base_j1( 1.0 ); +// returns ~0.440 +``` + +The function accepts the following arguments: + +- **x**: `[in] double` input value. + +```c +double stdlib_base_j1( const double x ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/math/base/special/j1.h" +#include + +int main( void ) { + const double x[] = { 0.0, 0.005, 3.14, 10.0, 51.125, 99.99, 100.0 }; + double v; + int i; + + for ( i = 0; i < 7; i++ ) { + v = stdlib_base_j1( x[ i ] ); + printf( "j1(%lf) = %lf\n", x[ i ], v ); + } +} +``` + +
+ + + +
+ + +