In Part 3 we managed to calculate 1,000,000 decimal places of π with Machin's arctan formula. Our stated aim was 100,000,000 places which we are going to achieve now! Fun with Maths and Python This is a having fun with maths and python article. See the introduction for important information! We have still got a long way to go though, and we'll have to improve both our algorithm (formula) for π and our implementation.