Question: Newton's method: Step #1 function Xs Newton Root (Fun, FunDer, Xest, Err, imax) Newton Root finds the root of Fun 0 near the point Xest


Newton's method: Step #1 function Xs Newton Root (Fun, FunDer, Xest, Err, imax) Newton Root finds the root of Fun 0 near the point Xest using Newton's method Input variables: Fun Handle of a user-defined function that calculates Fun for a given x. FunDir Handle of a user-defined function that calculates the derivative of Fun for a given x. Xest Initial estimate of the solution Err Maximum error imax Maximum number of iterations output variable: Solution for i m 1 imax Xi Xest Fun (Xest) /FunDer (Xest) if abs (Xi Xest) /Xe st) Err Xi; Xs m break end Xest m Xi; end if i mm imax printf ("Solution was not obtained in si iterations imax) Xs No answer') end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
