Bessel Functions in JS
Go to file
2014-08-04 09:32:18 +08:00
.gitignore Initial commit 2013-12-14 02:36:49 -05:00
.npmignore Initial commit 2013-12-14 02:36:49 -05:00
.travis.yml Initial commit 2013-12-14 02:36:49 -05:00
bessel.js Avoid modifying the Array.prototype; add a test for each bessel function 2014-08-04 09:32:18 +08:00
bessel.md Initial commit 2013-12-14 02:36:49 -05:00
LICENSE Initial commit 2013-12-14 02:36:49 -05:00
Makefile Initial commit 2013-12-14 02:36:49 -05:00
package.json Initial commit 2013-12-14 02:36:49 -05:00
README.md Initial commit 2013-12-14 02:36:49 -05:00
test.html Initial commit 2013-12-14 02:36:49 -05:00
test.js Avoid modifying the Array.prototype; add a test for each bessel function 2014-08-04 09:32:18 +08:00

Bessel.JS

Pure-JS implementation of the Bessel functions (J,Y,I,K), for node and browser

The standard notation is used here:

  • J is the Bessel function of the first kind
  • Y is the Bessel function of the second kind
  • I is the modified Bessel function of the first kind
  • K is the modified Bessel function of the first kind

Usage

The functions besselj, bessely, besseli, besselk are exposed when you include the script bessel.js:

<script src="bessel.js"></script>
<script>console.log(besselj(1,2));</script>

See test.html for an example

In node, those four functions are exported:

var besselj01 = require('bessel').besselj(0,1);

Each function follows Excel semantics (value, function-order). For example,

bessel.besselj(1.5, 1)

is the value of the bessel function J1 at the point x=1.5