Question: PROBLEM 2 . points 4 0 - Use Python The power series for the function a r c t a n ( x ) is

PROBLEM 2. points 40- Use Python
The power series for the function arctan(x) is
arctan(x)=i=1(-1)i+1x2i-12i-1
(points 5) Show that =4arctan(1). Using Python compute the absolute and relative errors between the exact value of and its approximation 4arctan(1).
(points 30) Using the power series of arctan(x), eq.(1), find value N so as the sum
sN=i=1N(-1)i+1x2i-12i-1
approximates the value of 4 with absolute error
|sN-4|10-5
Use a while ... break loop structure. After each new term is added, compute the absolute true error, the true percent relative error and the approximate percent relative error, eqs. (3),(4) and (5). Generate one plot for the value of sN versus number of terms added. Generate another plot for the absolute and approximate relative percent errors, eqs. (3),(4) and (5) respectively, versus number of terms added. Use a semilogarithmic scale for the y-axis of the errors plot.
3.(points 5) Place the algorithm you wrote above in a Python function to compute an approximation of using appropriate power series of arctan(x).
 PROBLEM 2. points 40- Use Python The power series for the

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!