Newton Method in N dimensions
by Kyle Drerup
12 Nov 2010
(Updated 14 Nov 2010)
Simple implementation of Newton's method, in n dimensions, taking input of >=n equations.
|
Watch this File
|
| File Information |
| Description |
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)
|
| Required Products |
Symbolic Math Toolbox
|
| MATLAB release |
MATLAB 7.5 (R2007b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 14 Nov 2010 |
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. |
|
Contact us