Newton - Raphson method

Find the zero of a regular function with Newton - Raphsons' method.
2.2K Downloads
Updated 12 Jul 2011

View License

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.

Cite As

Andrea Cirillo (2024). Newton - Raphson method (https://www.mathworks.com/matlabcentral/fileexchange/29721-newton-raphson-method), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.4.0.0

Update the code's comments

1.3.0.0

Update Description

1.0.0.0