Question: Please write easy and clean code for me. I just start to study Python and I have no idea what to write. Exercise 7.3. The

 Please write easy and clean code for me. I just start

Please write easy and clean code for me. I just start to study Python and I have no idea what to write.

Exercise 7.3. The mathematician Srinivasa Ramanujanfound an infinite series that can be used to generate a numerical approximation of 1 / : 1-2y2 0, (4k)(11034 26390k) T 9801(k)-396 k-0 Write a function called estimat e-pi that uses this formula to compute and return an estimate of T. 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 10-15). You can check the result by comparing it to math.pi Solution: http://thinkpython2. com/ code/pi. py

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!