Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

5. For the following question your submission should contain 3 matlab functions and a matlab script. (a) Create a Matlab program function that applies Newton's

image text in transcribed

5. For the following question your submission should contain 3 matlab functions and a matlab script. (a) Create a Matlab program function that applies Newton's method for a given function f, it's derivative fl, an initial guess x0, and a predetermined tolerance for residue tol. This program should output x: the estimate for the root off with residue smaller then tol, n: the number of iterations the program used to reach the specified tolerance. (b) Create a Matlab program function that applies false position method for a given function f, initial guesses x0 and xl, and a predetermined tolerance for residue tol. This program should output x: the estimate for the root off with residue smaller then tol, n: the number of iterations the program used to reach the specified tolerance. (c) Create a Matlab program function that applies the bisection method for a given function f, initial guesses a and b, and a predetermined tolerance for residue tol. This program should output x: the estimate for the root of f with residue smaller then tol, n: the number of iterations the program used to reach the specified tolerance. Page 2 (d) Create a Matlab script function that uses the functions created in (a), (b) and (c) for the function f = 227 10 with tolerances 0.1, 0.01, 0.001, 0.0001, 0.00001, 0.000001, 0.0000001, 0.00000001, 0.000000001, 0.0000000001. Also take x0=1 for (a), x0=5,xl=15 for (b) and a=0, b=15 for c). (e) Report and compare the results of these calculations as comments on your script file

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

Database Management An Organizational Perspective

Authors: Richard T. Watson

1st Edition

0471305340, 978-0471305347

More Books

Students also viewed these Databases questions

Question

Identify the different methods employed in the selection process.

Answered: 1 week ago

Question

Demonstrate the difference between ability and personality tests.

Answered: 1 week ago