Write a computer program (MatLab) which implements the method of inverse quadrat
ID: 2867750 • Letter: W
Question
Write a computer program (MatLab) which implements the method of inverse
quadratic interpolation to solve the equation f(x) = 0. List the iterates
after the method reaches the the region of convergence, which for our
purposes will be the point at which the first significant digit of the
solution is obtained and then retained in all subsequent iterations. Stop
the iterations when five digits of the solution have been obtained. Test
the method for the functions
(a) f(x) = x^5 - (cos x)^2 . The root is around 0.8477.
(b) f(x) = 128x^4 - 58x^3 + 126x^2 - 23x + 1 . Two roots are around
0.0686 and 0.1232
Explanation / Answer
a) f(0.8477)=(0.8477)^5 -(cos0.8477)^2
=0.43773-0.99978=-0.56205 not equal to 0 hence it is false
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.