(11C) X to Power of X Equation
|
02-20-2018, 09:05 PM
(This post was last modified: 02-20-2018 09:08 PM by Dieter.)
Post: #12
|
|||
|
|||
RE: (11C) X to Power of X Equation
(02-20-2018 08:19 PM)Dieter Wrote: The Newton merhod for this particular function does not converge very well. It should work if the initial guess is sufficiently close to the solution. But in other cases the iteration will show very slow convergence or will even lead away from the solution, and you get an error. To illustrate this point, here are the successive approximations for X^X–1000 = 0 for some different initial guesses, calculated with the exact derivative (and Excel ;-)) Code: guess = 4 Fine. This seems to work. Code: guess = 3 This leads away from the solution and then moves veeeery slowly back in direction of the solution. It takes about 60 (!) iterations before the result is OK. Code: guess = 2 The iteration stops with an error because already the first new approximation becomes so large that the next step (requiring the evaluation of 149^149) will lead to an overflow error. Code: guess = 10 Again, the iteration converges veeery slowly. That's why I suggest solving X*ln X = ln 1000 instead. Dieter |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(11C) X to Power of X Equation - Gamo - 02-15-2018, 12:33 PM
RE: (11C) X to Power of X Equation - Dieter - 02-15-2018, 08:04 PM
RE: (11C) X to Power of X Equation - Dieter - 02-15-2018, 09:58 PM
RE: (11C) X to Power of X Equation - Gamo - 02-16-2018, 06:36 AM
RE: (11C) X to Power of X Equation - Dieter - 02-18-2018, 08:02 PM
RE: (11C) X to Power of X Equation - Gamo - 02-19-2018, 01:00 AM
RE: (11C) X to Power of X Equation - Dieter - 02-19-2018, 08:15 AM
RE: (11C) X to Power of X Equation - Gamo - 02-20-2018, 01:49 AM
RE: (11C) X to Power of X Equation - Dieter - 02-20-2018, 08:07 AM
RE: (11C) X to Power of X Equation - Gamo - 02-20-2018, 09:28 AM
RE: (11C) X to Power of X Equation - Dieter - 02-20-2018, 08:19 PM
RE: (11C) X to Power of X Equation - Dieter - 02-20-2018 09:05 PM
RE: (11C) X to Power of X Equation - Gamo - 02-21-2018, 04:25 AM
|
User(s) browsing this thread: 1 Guest(s)