JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 360937
  • Score
    100M100P100Q209559F
  • License MIT

Bessel Functions in pure JS

Package Exports

  • bessel

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bessel) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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