Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please solve it with matlab ! 1. Modify the function NewtonRoot that is reviewed in Lecture #4, such that the input will have three arguments.

please solve it with matlab !

image text in transcribed

1. Modify the function NewtonRoot that is reviewed in Lecture #4, such that the input will have three arguments. Name the function Xs Newton Sol (Fun, FunDer, Xest). The output argument Xs is the solution, and the input arguments Fun, FunDer, and Xest are the same as in NewtonRoot. The iterations should stop when the estimated relative error (Lecture #4 Eq. (3.18) is smaller than 106. The number of iterations should be limited to 100 (to avoid an infinite loop). If a solution with the required accuracy is not obtained in 100 iterations, the program should stop and display an error message. Use the function NewtonSol to solve the equation 8-4.50x-sinx) 30

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 Systems Design Implementation And Management

Authors: Peter Robb,Carlos Coronel

5th Edition

061906269X, 9780619062699

More Books

Students also viewed these Databases questions