Code covered by the BSD License

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

Highlights from Newton - Raphson method

1.0
1.0 | 1 rating Rate this file 1 Download (last 30 days) File Size: 1.84 KB File ID: #29721 Version: 1.4

Newton - Raphson method

Andrea Cirillo (view profile)

15 Dec 2010 (Updated )

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

File Information
Description

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.

MATLAB release MATLAB 7.11 (R2010b)
Tags for This File   Please login to tag files.
 Please login to add a comment or rating.
Comments and Ratings (1)
14 Feb 2011 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
27 Dec 2010 1.3

Update Description

12 Jul 2011 1.4

Update the code's comments

Contact us