1).For this excercise use Python programming language. Use “ifstatements”, “switch statements”, “try-except statements”
, “loops” – (for loops, range), “containers” – (strings, lists,sets, tuples dictionaries, and arrays).]
The following series can be used to calculate the value of pi: π= 2* [2*(2/3)*(4/3)*(6/5)*…]
Implement the equation in a function that receives the relativeerror willing to accept. The function must return the user a vectorwith all estimated π values and another vector with relativeerrors associated with each estimation
Expert Answer
An answer will be send to you shortly. . . . .