Be the first to rate this file! 45 Downloads (last 30 days) File Size: 2.02 KB File ID: #37098

NEWTON RAPHSON FUNCTION

by Sandeep Solanki

 

11 Jun 2012

Newton Raphson method to find root of equation.

| Watch this File

File Information
Description

% 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.

MATLAB release MATLAB 7.8 (R2009a)
Tags for This File  
Everyone's Tags
iteration, newton, newtonraphson, sandeep, successive approximation
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
27 Oct 2012 Lampor

I need to solve this problem using newton-raphson.

R= 1000 to 100000 (step 1000)

the equation need to be solve is:

4.04+3.94*log(R*x^0.5)-(1/x^0.5)=0

I need every single value of x for every value of R.

I wrote a code, but it only work when R=1000, if I change R=100000 (just trying by add 1 input of R, actually R that I need is like I said above), matlab keep being busy... don't know why...

Please help me...

Contact us