Question: Need python code . please be precise . will give thumbs up You will write a program that approximates the value of the mathematical constant
You will write a program that approximates the value of the mathematical constant p from the following infinite series Your program will prompt the number of terms in the series to use for the estimate. It will then approximate pl uning exactly that many terms. To measure the approximation error, the program will also compute the difference between the approximation and the value of math.pl from the math module. The output for both floating point values should be formatted to 10 decimal places When your program is run for 6 terms the output should be Number of terms 6 Estimate of pl: 2.9760461760 Error: 0.1655464775 When your program is run for 99 terms the output should be Number of terms.99 Estimate of pl: 3 1516934061 Error -0.0101007525
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
