Calculate digits of Pi in hexadecimal.

Josh Bicking ada7d5cba9 Add alternative rangePi folding in comment %!s(int64=6) %!d(string=hai) anos
app ada7d5cba9 Add alternative rangePi folding in comment %!s(int64=6) %!d(string=hai) anos
src 568982b92d Add initial revision, README and TODO list %!s(int64=6) %!d(string=hai) anos
test 568982b92d Add initial revision, README and TODO list %!s(int64=6) %!d(string=hai) anos
.gitignore 1bb650927c Initial commit %!s(int64=6) %!d(string=hai) anos
LICENSE 1bb650927c Initial commit %!s(int64=6) %!d(string=hai) anos
README.md 64925d1564 Update threading status, add arg parsing TODO %!s(int64=6) %!d(string=hai) anos
Setup.hs 568982b92d Add initial revision, README and TODO list %!s(int64=6) %!d(string=hai) anos
pi-digits.cabal 710a60a69f Added parallelism to sum calculation %!s(int64=6) %!d(string=hai) anos
stack.yaml 568982b92d Add initial revision, README and TODO list %!s(int64=6) %!d(string=hai) anos

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

  • [X] Add a function for converting results to decimal (and binary).
  • [X] Implement threading.
  • Implement optparse-applicative for more formal/extensive arg parsing.
  • 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.