Newton's method done right

Newton's method for solving systems of nonlinear equations, including nonsquare and inconsistent
Updated 15 May 2015

View License

Newton's method for solving a system of nonlinear equations, see's_method
Newton(X,F,X0) solves nonlinear system F(x)=0 by Newton's method, using the given initial approximation X0. The derivative (Jacobian) is evaluated symbolically. The iterations are performed numerically.

The included demo NewtonDemoRunMe.m shows how to run the Newton.m function. E.g., it creates a slide-show and a movie, illustrating the behavior of the iterates.

Cite As

Andrew Knyazev (2024). Newton's method done right (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Systems of Nonlinear Equations in Help Center and MATLAB Answers

Inspired: GUI for "Newton's Method Done Right"

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Multiple improvements and updates.
added a conversion to a toolbox

Bug fixes in Newton.m and a new script NewtonDemoRunMe.m with examples.