<< bsolve Equation Solver (eqnsolver) quadsolver >>

Equation Solver (eqnsolver) >> Equation Solver (eqnsolver) > nrsolve

nrsolve

Finds the root of an equation using a Numerical Technique called Newton-Raphson Method.

Calling Sequence

a=nrsolve(x0,f,df,tol)

Arguments

x0

Initial Guess(It should be somewhat near the root, though it is not always necessary)

f

equation(function) whose root is to be estimated

df

the derivative of the function f(define a function df which is the derivative of the equation whose root is to be estimated)

tol

Tolerance or acceptable error in the root.

a

root of the equation in the interval [a,b]

Description

Finds the root of an equation using the Numerical technique of Finding a root called Newton Raphson Method.

NOTE: This method does not find all the roots but only One root near the initial guess.

To find different roots try using different initial guesses.

Examples

deff('a=f(x)','a=9*x^3-81');
deff('a=df(x)','a=27*x^2');
nrsolve(25,f,df,0.00000001)

See Also


Report an issue
<< bsolve Equation Solver (eqnsolver) quadsolver >>