#Skip to menu

30 pi decimal digits

First read the problem description.

I’ve implemented the Salamin-Brent algorithm with 5 iterations using GNU GMP. For an interesting survey of methods to calculate π digits see The quest for Pi.


Source code of the solution(s):
Tags: c pi math