Question: function root = newton( f, fp, x0, atol, max_iterate ) % function root = newton( f, fp, x0, atol, max_iterate ) % This is the
function root = newton( f, fp, x0, atol, max_iterate ) % function root = newton( f, fp, x0, atol, max_iterate ) % This is the Newton's method for solving an equation f(x)=0. % Input: % f: function to find root. % fp: Derivative of function. % x0: Initial guess of the root. % atol: Error tolerance. % max_iterate: Maximum iterates in loop, in case the code has an % infinite cycle. % Output: % root
% =================Initializing===================== root = 0; % ================================================== % ============= YOUR CODE BEGINS HERE ============== % Instruction: Use stop criteria |xn-xn_minus_one| % ================================================ end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
