NEWTON RAPHSON FUNCTION

Newton Raphson method to find root of equation.
1.2K Downloads
Updated 11 Jun 2012

View License

% Function :
% X = newtonraphson(fun_str,Start_Point)
% Finds the root of an equation by NEWTON-RAPHSON METHOD.
%
% x(n+1) = x(n) - (F(x(n))/diff(F(x(n)));
%
% INPUTS :
% Eqn_Str : The equation whose root has to be find.
% Eqn_Str Should be an string format.
% Example :
% if F(x) = x^4 - x - 10
% the Eqn_Str = 'x^4 - x - 10';
%
% Start_Point : Initial value of root X ==> x0
%
% Max_Iter : Maximum number of iterations
%
% OUTPUT :
% X : Estimeted root of Equation.
%--------------------------------------------------------------------------
% By :-
% SANDEEP SOLANKI
% rtm_sandeep@rediffmail.com
%--------------------------------------------------------------------------

% Look demo.m for more info.

Cite As

Sandeep Solanki (2026). NEWTON RAPHSON FUNCTION (https://uk.mathworks.com/matlabcentral/fileexchange/37098-newton-raphson-function), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0.0