Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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).
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions