I am not a programmer (yet), and I am doing a project for a Calculus class on the derivation of pi. Since this software managed to produce a large amount of digits for me, and although the code is open, I cannot see what it does due to my own lack of skills, I would like to know how it calculates pi.