Answered step by step
Verified Expert Solution
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 !
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started