Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

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

Step: 3

blur-text-image

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

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions

Question

=+Why does the brand want to advertise?

Answered: 1 week ago