Calculate pi decimals
Calculate pi decimals with Machin's formula
pi = 16*acot(5) - 4*acot(239)
John D'Errico
A nice code. Well written. Simple, descriptive help. And its surprisingly fast, generating 4000 digits of pi in under a second on my slow CPU. I picked some random digits to verify, all were correct. Well done.