bessel
Bessel Functions in pure JS
npm install bessel
Want to see pretty graphs? Log in now!
2 | downloads in the last week |
5 | downloads in the last month |
Last Published By | |
---|---|
Version | 0.1.1 last updated 4 months ago |
License | MIT |
Keywords | bessel, math, specfun |
Repository | https://github.com/SheetJS/bessel (git) |
Homepage | https://github.com/SheetJS/bessel |
Bugs | https://github.com/SheetJS/bessel/issues |
Dependencies | voc |
Dependents | maths, spectrum-calculator |
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