File Exchange

## Newton - Raphson method

version 1.4 (1.84 KB) by

Find the zero of a regular function with Newton - Raphsons' method.

4 Downloads

Updated

It is a Matlab function that determines the zero of a regular real function.

zero=newton_raphson(function,error)

The function has two input variable: 'function' is a string that represents the function of which find the relative zero. It must be expressed with the real variable 'x'. 'error' is the tolerance for the algorithm's arrest.
The function returns the zero point of the real function. It plots, in a figure, the function and the tangents used for the search of the zero.

Jan Simon

### Jan Simon (view profile)

The documentation is not written in English and does not follow the Matlab standards: "Calcola lo zero per una funzione scalare di variabile scalare inserita in
ingresso utilizzando l'algoritmo di Newton-Raphson. 'Tollerenza' è il paramentro di arresto dell'algoritmo." If you can understand this and find out, what "d_f = inline(char(diff(funzione)));" is useful for, this submission could be useful for you. But it seems to be limited to functions on the interval [0, 10] and uses a fixed stepwidth of 0.01, but without any useful comments, this is hard to check. Therefore I estimate this function as not usable and not useful.

### Updates

 12 Jul 2011 1.4 Update the code's comments 27 Dec 2010 1.3 Update Description
##### MATLAB Release
MATLAB 7.11 (R2010b)
##### Tags Add Tags

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.