Calculate digits of Pi in hexadecimal.

Josh Bicking 710a60a69f Added parallelism to sum calculation преди 7 години
app 710a60a69f Added parallelism to sum calculation преди 7 години
src 568982b92d Add initial revision, README and TODO list преди 7 години
test 568982b92d Add initial revision, README and TODO list преди 7 години
.gitignore 1bb650927c Initial commit преди 7 години
LICENSE 1bb650927c Initial commit преди 7 години
README.md afc26f00f3 Add dec and bin printing, add help, cleanup range and prompt преди 7 години
Setup.hs 568982b92d Add initial revision, README and TODO list преди 7 години
pi-digits.cabal 710a60a69f Added parallelism to sum calculation преди 7 години
stack.yaml 568982b92d Add initial revision, README and TODO list преди 7 години

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).
  • 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?