Crate boys[][src]

Expand description

A Rust library for calculation of the Boys function

\[ F_{n}(x) = \int_{0}^{1} t^{2n} e^{-xt^{2}} \mathop{dt} \]

via a number of methods:

System dependencies

The GNU Scientific Library (GSL) is used via the rgsl crate to provide the gamma and incomplete gamma functions for the exact implementation and the error function for Michael Böhme’s algorithm.

OS/distroinstall command
Debian/Ubuntusudo apt-get install libgsl0-dev
Arch Linuxsudo pacman -S gsl
macOS (using Homebrew)brew install gsl

Literature

S. F. Boys, Proc R. Soc. Am. 1950, 200, 542.

Modules

An exact implementation using the gamma and incomplete gamma functions.