Question: Task 3 : True and Approximate Relative Error ( 1 5 pts ) Solve problem 3 . 7 from the Chapra and Canale text (
Task : True and Approximate Relative Error pts
Solve problem from the Chapra and Canale text below and follow the supplemental instructions
below. To clarify what the problem is asking, you are to compute the true percent relative error after
every iteration there should be of these error values and the approximate percent relative error
between successive approximations so there should be of these
Evaluate using two approaches,
cdots
and
and compare with the true value of Use terms to evaluate each series and
compute true and approximate relative errors as terms are added.
You will:
Create a Python file called Ataskpy that:
a Defines a Python function or two to approximate using both approaches. Your
functions should have at least two inputs: the value of which will equal in this case
and the number of terms to use, In each of the approaches, counts as the first term.
b Uses the functions in part a to solve the textbook problem.
c Graphs the results approximation value, true percent relative error, and approximate
percent relative error axis as functions of the number of terms axis used in the
approximation Plots need to have sufficient resolution on the axes.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
