Pi

Shared by
Ethan Bell
Basic

Incrementally approximates pi using Leibniz' formula -- the arctangent function is incrementally (co-recursively) computed along :improved_by edges, and each arctangent approximation is quadrupled to yield an approximation of pi.

To run this recipe:

java -jar quine-1.3.2.jar -r pi --recipe-value out_file=pi.json
Download quine
Recipe code:
DOWNLOAD recipeCUSTOMIZE recipe