Question: For the function f ( x ) = 0 . 2 5 x 2 - 2 . 7 5 x + 6 . 6 6
For the function follow the steps below and answer the questions:
a Using the linspace command in the NumPy library in Python, obtain in points in the range Obtain the values of with the obtained and plot against using the pyplot submodule within the Matplotlib library. Add grids to the graph and make an estimate of the locations of the roots of the function by examining the graph, then write down your predictions.
b Find the roots of the function analytically and compare them with the roots you estimated in part a
c Based on the findings from part a implement all rootfinding methods covered in the class Bisection Fixed Point Iteration, Newton, and Secant for the given function in each root's respective interval. Explain each step in the Python code you write. Create a table in your report for each method showing the iteration steps and specify the error tolerance and the iteration number at which the root was found.
d List all the roots obtained from different rootfinding methods in part b and calculate their relative errors compared to the analytically calculated root values. Examine the errors of the methods in consideration of what was covered in the class.
e Review all the steps you took in the above sections. Interpret and write down your findings and what you have learned.
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
