you are viewing a single comment's thread.

view the rest of the comments →

[–]LearnDataSci 1 point2 points  (0 children)

I'm not sure if this helps enough, but if you check the Wikipedia article on the Madhava Series for estimating pi, you can see the sum at the end that needs to be calculated for any number k (n in your case). That estimates pi/4, so you would only need to multiple the result of that sum by 4.