Main index for the CD included in the book

"Pi, Algorithmen, Computer, Arithmetik, 2nd ed."

by Jörg Arndt and Cristoph Haenel


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.


Document formats on this CD: besides text files (ascii, *.txt), data files (*.dat) and hypertext files (*.html) you will find several documents in the formats dvi ('device independent', *.dvi), postscript (*.ps) and portable data format (*.pdf).
If you don't know what postscript is or don't have a postscript printer you might want to get Ghostscript.
To view the pdf-documents you need a pdf-reader like xpdf (for X-Windows users) or acrobat reader. Windows versions of the acrobat reader are included on this CD. The webpage of Acrobat is www.acrobat.com.


All files on this CD are part of the book "Pi, Algorithmen, Computer, Arithmetik" by Jörg Arndt and Christoph Haenel. Copyright for the included files lies by the respective authors.

Your comments, corrections and ideas are welcome, please send email to pibook@jjj.de.