Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 3 ( 3 0 point ) Consider f ( x ) = x 2 + 6 x + 8 ( i ) 1 0

Problem 3(30 point)
Consider
f(x)=x2+6x+8
(i)10 point Construct the MATLAB code of the Newton-Rhapson method to find the root of f. Discuss the convergence of the Newton-Rhapson algorithm.
(ii)10 point Construct the MATLAB code of the secant method to find the root of f.
(iii)10 point Iterative (i)-(ii) for two times when the initial conditions are p0=-3.8 and p0=-1.8. Compare the two algorithms in terms of the absolute error.
Solution
(i) MATLAB code
Convergence: f is twice differentiable. Also, f'(p)0, where p is the root of p. Hence, by the Newton-Rhapson theorem, there exists a >0 such that the algorithm converges to the root of f for any initial condition of p0in[p-,p+].
(ii) MATLAB code
(iii) simple computation
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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

OpenStack Trove

Authors: Amrith Kumar, Douglas Shelley

1st Edition

1484212215, 9781484212219

More Books

Students also viewed these Databases questions

Question

1. Select the job or jobs to be analyzed.

Answered: 1 week ago