Reckoner
A high level arbitrary precision integer and rational arithmetic library wrapping imath
.
Example
The following example computes an approximation of pi using the Newton / Euler Convergence Transformation.
use ;
// Product of all odd integer up to the given value.
// ```
// \frac{\pi}{2}
// = \sum_{k=0}^\infty\frac{k!}{(2k+1)!!}
// = \sum_{k=0}^{\infty} \cfrac {2^k k!^2}{(2k + 1)!}
// = 1+\frac{1}{3}\left(1+\frac{2}{5}\left(1+\frac{3}{7}\left(1+\cdots\right)\right)\right)
// ```
See examples/
for more.
Crates
The MSRV for both crates is 1.64.0
.
reckoner
A high level arbitrary precision arithmetic library supporting integer and rational numbers.
creachadair-imath-sys
FFI bindings for imath
.