Newton - Raphson method

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

You are now following this Submission

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 (2026). Newton - Raphson method (https://www.mathworks.com/matlabcentral/fileexchange/29721-newton-raphson-method), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.4.0.0

Update the code's comments

1.3.0.0

Update Description

1.0.0.0