Solving a system on nonlinear equations using Halley's method
|
04-05-2014, 04:44 AM
(This post was last modified: 11-09-2015 09:23 AM by Namir.)
Post: #1
|
|||
|
|||
Solving a system on nonlinear equations using Halley's method
I have known for many years that Halley's method for solving single-variable nonlinear functions converged faster than Newton's method.
Early today I found the following 1985 article that discusses Halley's method for solving a system of nonlinear equations. Developing the matrix version of Halley from the regular version is not trivial. The article find is a gem! I wrote the following Matlab code (should be stored in file sne_halley.m) for the algorithm mentioned in the cited article. Code:
The code for test file fx1.m is: Code: function y = fx1(x) The code for test file fx2.m is: Code: function y = fx2(x) The code for test file fx3.m is: Code: function y = fx3(x) Sample run in Matlab is: [X, ~]=sne_halley(3, [4 2 3],1e-7,1e-8,1000,@fx1,@fx2,@fx3) You get: Code: % I think the Matlab code can be adapted to work on the HP-39gII, HP Prime, HP-71B with MATH ROM, HP-75C with MATH ROM, and the HP48S/SX/G/G+/Gx/49G/49G+/Gii/50 line of graphing calculators. The code for the nonlinear functions can be consolidated into a single program function that evaluate the different non-linear functions using an IF statement. Namir |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Solving a system on nonlinear equations using Halley's method - Namir - 04-05-2014 04:44 AM
RE: Solving a system on nonlinear equations using Halley's method - Thomas Klemm - 04-05-2014, 07:46 AM
RE: Solving a system on nonlinear equations using Halley's method - ttw - 06-06-2014, 01:48 AM
RE: Solving a system on nonlinear equations using Halley's method - Namir - 06-06-2014, 03:02 AM
RE: Solving a system on nonlinear equations using Halley's method - ttw - 06-10-2014, 02:43 AM
RE: Solving a system on nonlinear equations using Halley's method - Eddie W. Shore - 06-12-2014, 01:39 PM
|
User(s) browsing this thread: 2 Guest(s)