Newton Method in N dimensions

Simple implementation of Newton's method, in n dimensions, taking input of >=n equations.
5.4K Downloads
Updated 14 Nov 2010

View License

For an input of n equations, it converges to the solution.
For an input of >n equations, there is no exact solution. In this case, the function minimizes sum( (individual equation errors).^2)

Cite As

Kyle Drerup (2024). Newton Method in N dimensions (https://www.mathworks.com/matlabcentral/fileexchange/29370-newton-method-in-n-dimensions), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
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.1.0.0

In rare instances, matlab tried to solve for inverse of the jacobian symbolically. I added if statement, to guarantee jacobian is numeric for each iteration.
Additionally, I changed the stop condition, to reflect linear convergence.

1.0.0.0