+ 1

Hey Guys! I had a rather funny question: how would you calculate the value of pi in Python using the Gregory-Leibniz series?

I am an absolute beginner and I really don't know how to increment the value and calculate the sum at the same time. Thanks a lot.

16th Apr 2017, 4:01 AM
Coder511
2 odpowiedzi
14th Jun 2018, 4:24 PM
Hanz
Hanz - avatar
- 1
import math pi = PI()
14th Jun 2018, 3:13 PM
West Landi
West Landi - avatar