Question: on In Matlab, write a function to find the root by using Newtons method with the following inputs:p0, f, derf, tol and with the following
on 
In Matlab, write a function to find the root by using Newtons method with the following inputs:p0, f, derf, tol and with the following outputs: p, nc, iter, nttime where p0 is the initial guess, f is a function, derf is the derivative of this f(x), tol is the tolerance (set tol=
), p is the approximate root satisfying the tolerance, nc is the number of all multiplication used in this method, iter is the number of the iteration used in the method and nttime is the computing time to solve this problem.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
