[](https://travis-ci.com/berquist/boys)
[](LICENSE)
[](https://github.com/berquist/boys/issues)
# boys
A Rust library for calculation of the Boys function

via a number of methods:
- An "exact" algorithm originally from [Radovan Bast](https://github.com/bast/obara-saika/blob/52ff0fa4d470eeb7a41d932078b2e4d9a54d05e5/obara_saika.py#L371).
- A non-clean-room reimplementation of [Michael Böhme's algorithm](https://github.com/micb25/libboys).
## System dependencies
The [GNU Scientific Library](https://www.gnu.org/software/gsl/) (GSL) is used via the [`rgsl`](https://crates.io/crates/GSL) crate to provide the gamma and incomplete gamma functions for the exact implementation and the error function for Michael Böhme's algorithm.
| Debian/Ubuntu | `sudo apt-get install libgsl0-dev` |
| Arch Linux | `sudo pacman -S gsl` |
| macOS (using Homebrew) | `brew install gsl` |
## Literature
[S. F. Boys, *Proc R. Soc. Am.* **1950**, *200*, 542.](https://doi.org/10.1098/rspa.1950.0036)