Newton Method in N dimensions

Simple implementation of Newton's method, in n dimensions, taking input of >=n equations.

You are now following this Submission

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 (2026). Newton Method in N dimensions (https://www.mathworks.com/matlabcentral/fileexchange/29370-newton-method-in-n-dimensions), 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.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