Calculate digits of Pi in hexadecimal.

Josh Bicking 568982b92d Add initial revision, README and TODO list 6 years ago
app 568982b92d Add initial revision, README and TODO list 6 years ago
src 568982b92d Add initial revision, README and TODO list 6 years ago
test 568982b92d Add initial revision, README and TODO list 6 years ago
.gitignore 1bb650927c Initial commit 6 years ago
LICENSE 1bb650927c Initial commit 6 years ago
README.md 568982b92d Add initial revision, README and TODO list 6 years ago
Setup.hs 568982b92d Add initial revision, README and TODO list 6 years ago
pi-digits.cabal 568982b92d Add initial revision, README and TODO list 6 years ago
stack.yaml 568982b92d Add initial revision, README and TODO list 6 years ago

README.md

pi-digits

Calculate requested digits of Pi.

Built using The BBP Algorithm for Pi.

Building

Install stack, then run stack build from inside the repository.

Running

Run stack exec pi-digits-exe, or execute the binary found in ./.stack-work/install/.

TODO

  • Add a function for converting results to decimal.
  • Implement a faster mod operation, to allow for larger numbers (like 12345678901234567890). It will likely be implemented with the algorithm explained in the paper.
  • Replace the mess in prompt with a monad.
  • Implement threading?