Question: Write a function called estimate_pi that uses this formula to compute and return an estimate of . It should use a while loop to compute
Write a function called estimate_pi that uses this formula to compute and return an estimate of . It should use a while loop to compute terms of the summation until the last term is smaller than 1e-15 (which is Python notation for 1015). You can check the result by comparing it to math.pi.
Please use python!
Exercise 7.5. The mathematician Srinivasa Ramanujan found an infinite series that can be used to generate a numerical approximation of 1/ : 1=980122k=0(k!)43964k(4k)!(1103+26390k)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
