File Exchange

image thumbnail

Newton - Raphson method

version 1.4 (1.84 KB) by

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



View License

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


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.

Comments and Ratings (1)

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.



Update the code's comments


Update Description

MATLAB Release
MATLAB 7.11 (R2010b)

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

» Watch video