Question: USING MATLAB ONLY : Write secant function that finds root and saves convergence data Use code to find zero f(x) = e^x - 3x^2 in

USING MATLAB ONLY : Write secant function that finds root and saves convergence data

Use code to find zero f(x) = e^x - 3x^2 in the interval [-1,0].

On a semi-log plot, compare the rate of convergence of the secant

method to that of the bisection method with the same starting values [-1,0]

and to Newtons method with initial guesses -1 and 0.

Verify that all 3 method converge to the same zero.

Hand in a copy of the command window where functions were called.

Hand in a plot of the convergence data on the 3 methods with axes and curves labeled.

The plot of the script should look like this

USING MATLAB ONLY : Write secant function that finds root and saves

Comparison bisection and Newton method 0 bsect newt1 newt2 4 . secent -5 -10 -15 0 2468 10 12 14 168 20 Number of iterations 2

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

Students Have Also Explored These Related Databases Questions!