Question: %define a function syms x; f = @(x) x^3 - 9*x^2 + 23*x - 16; %a function derivative df = @(x) 3*x^2 - 18*x +

%define a function syms x; f = @(x) x^3 - 9*x^2 + 23*x - 16; %a function derivative df = @(x) 3*x^2 - 18*x + 23; %using Newtons method to find a root in interval [0,2] xI = 1.15; %pick 1.15 as this nitial value makes the converging proicess faster tol = 10^(-10); error = 1; %state the error while error >= tol xF = xI - f(xI)/df(xI); error = xF-xI; xI = xF; end sol = xI; sol is this correct method to solve question 4 in this file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock