Question: 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
Get step-by-step solutions from verified subject matter experts
