From 8b0c717676b5753063c80e990e7e180e04e99fd6 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 11 Aug 2024 02:09:18 +0000 Subject: [PATCH] Auto-generated commit --- CHANGELOG.md | 23 ++ base/special/besselj1/README.md | 88 +++++ .../besselj1/benchmark/benchmark.native.js | 60 +++ .../besselj1/benchmark/c/native/Makefile | 146 ++++++++ .../besselj1/benchmark/c/native/benchmark.c | 133 +++++++ base/special/besselj1/binding.gyp | 170 +++++++++ base/special/besselj1/examples/c/Makefile | 146 ++++++++ base/special/besselj1/examples/c/example.c | 31 ++ base/special/besselj1/include.gypi | 53 +++ .../include/stdlib/math/base/special/j1.h | 38 ++ base/special/besselj1/lib/native.js | 55 +++ base/special/besselj1/lib/rational_p1q1.js | 4 +- base/special/besselj1/lib/rational_p2q2.js | 4 +- base/special/besselj1/lib/rational_pcqc.js | 4 +- base/special/besselj1/lib/rational_psqs.js | 4 +- base/special/besselj1/manifest.json | 84 +++++ base/special/besselj1/scripts/evalrational.js | 60 +++ base/special/besselj1/src/Makefile | 71 ++++ base/special/besselj1/src/addon.c | 23 ++ base/special/besselj1/src/main.c | 281 ++++++++++++++ base/special/besselj1/test/test.native.js | 345 ++++++++++++++++++ 21 files changed, 1815 insertions(+), 8 deletions(-) create mode 100644 base/special/besselj1/benchmark/benchmark.native.js create mode 100644 base/special/besselj1/benchmark/c/native/Makefile create mode 100644 base/special/besselj1/benchmark/c/native/benchmark.c create mode 100644 base/special/besselj1/binding.gyp create mode 100644 base/special/besselj1/examples/c/Makefile create mode 100644 base/special/besselj1/examples/c/example.c create mode 100644 base/special/besselj1/include.gypi create mode 100644 base/special/besselj1/include/stdlib/math/base/special/j1.h create mode 100644 base/special/besselj1/lib/native.js create mode 100644 base/special/besselj1/manifest.json create mode 100644 base/special/besselj1/src/Makefile create mode 100644 base/special/besselj1/src/addon.c create mode 100644 base/special/besselj1/src/main.c create mode 100644 base/special/besselj1/test/test.native.js diff --git a/CHANGELOG.md b/CHANGELOG.md index df8781f40..94cb53a2b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1879,6 +1879,28 @@ This release closes the following issue: +
+ +#### [@stdlib/math/base/special/besselj1](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/besselj1) + +
+ +
+ +##### Features + +- [`18bd1b5`](https://github.com/stdlib-js/stdlib/commit/18bd1b5ace1a7dbd9d26bb66c1a1f0aa91573416) - add C implementation for `math/base/special/besselj1` + +
+ + + +
+ +
+ + +
#### [@stdlib/math/base/special/beta](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/beta) @@ -5940,6 +5962,7 @@ A total of 30 people contributed to this release. Thank you to the following con
+- [`18bd1b5`](https://github.com/stdlib-js/stdlib/commit/18bd1b5ace1a7dbd9d26bb66c1a1f0aa91573416) - **feat:** add C implementation for `math/base/special/besselj1` _(by Gunj Joshi, Philipp Burckhardt)_ - [`3985f47`](https://github.com/stdlib-js/stdlib/commit/3985f47c6ec78cc644a98aa916740a1b2d37338f) - **feat:** add C implementation for `math/base/special/gamma-delta-ratio` _(by Gunj Joshi, Athan Reines, Philipp Burckhardt)_ - [`0258e19`](https://github.com/stdlib-js/stdlib/commit/0258e19861efda8129308f2caae486b35a249edd) - **chore:** update package meta data [(#2773)](https://github.com/stdlib-js/stdlib/pull/2773) _(by stdlib-bot, Philipp Burckhardt)_ - [`5b184b6`](https://github.com/stdlib-js/stdlib/commit/5b184b681a3d1d5c3fea30b9d8f4630c86eb44af) - **feat:** add C implementation for `math/base/special/binomcoefln` _(by Gunj Joshi, Philipp Burckhardt)_ diff --git a/base/special/besselj1/README.md b/base/special/besselj1/README.md index b3c47b741..f111d1457 100644 --- a/base/special/besselj1/README.md +++ b/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 ); + } +} +``` + +
+ + + +
+ + +