The
hfloat
package.
hfloat stands for "huge float".
With hfloat one can do computations with precisions
up to several million digits,
e.g. compute pi, e, ln(pi), ...
The same directory also contains a text
about arithmetical algorithms (arith.*) for
computations with numbers of extreme precision.
This is the place to learn about more details of pi computation.
hfloat uses FFT multiplication, for that it uses the fxt library. If you want to learn about FFTs then see the fft tutorial (fxtrem.*) in the same directory.
Code and binaries for the spigot algorithm.
Code for some monte carlo algorithms for the computation of pi.
Many digits of some constants, 400 million decimal digits of pi=3.1425..., digits of e=2.71828... and log(2)=0.6931... and a program to seek your birthday in pi
Some pi related obfuscated C code.
apfloat (a high-performance C++ arbitrary precision library by Mikko Tommila) is a package for high precision computations.
cln (by Bruno Haible) is still another package for high precision computations. Be sure to fasten your seat belt before you look into the code !
one more package for high precision computations: piologie (by Sebastian Wedeniwski)
yet another package for high precision (pi-)computations: piagm (by Carey Bloodworth)
Links to pi related web pages.
Code and binaries for the digit extract (BBP) algorithm and code for the bit recursion for 1/pi.
Your comments, corrections and ideas are welcome, please send email to pibook@jjj.de.