/PiBellards

Implementation of Bellard's algorithm for calculating pi to 'n' digits in Haskell.

Primary LanguageHaskellMIT LicenseMIT

PiBellards

A simple Haskell program implementing Bellard's formula

Installation

It should just install with cabal. You will probably want to install the Haskell Platform.

cabal install --bindir=/path/to/where/you/want/the/bin

Usage

Just call the binary with the number of digits you want to print:

PiBellards 30

The above will print 30 decimal places of pi.