|(require pidec)||package: pidec|
Pidec implements an algorithm to compute single decimals of the sequence of π digits, using only a small amount of memory.
The implementation is in the module ‘main.rkt‘, while its tests are defined in ‘test-main.rkt‘. The first one is written in Typed Racket, while the second one is plain Racket. Apparently, Typed Racket does not support defining tests in submodules of the same file as the implementation.
|(require pidec/main)||package: pidec|
The main exported function is called main and it accepts a single argument, position, which is the starting position of the π decimals you want to compute.