Variant of the Secant Method
|
12-12-2020, 04:27 PM
Post: #11
|
|||
|
|||
RE: Variant of the Secant Method
(12-12-2020 02:41 PM)ttw Wrote: Methods with high convergence can have problems numerically; they also tend to have a smaller domain of convergence. This might not always true. In fact, recently we come across opposite case, LambertW function implementation. Solving f(x) = x*e^x - a, with Newton's method is very unstable. Higher convergence method, say Halley, it becomes "safe" P.S. the next post, I had suggested another way, to suppress the exponential. This version, Newton's method is fast, and safe. >>> from mpmath import * >>> a = -1e99 >>> findroot(lambda x: x + ln(x/a), 200+3j) # bad guess mpc(real='222.55067066150301', imag='3.1275404175517207') >>> lambertw(a) mpc(real='222.55067066150301', imag='3.127540417551721') |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Variant of the Secant Method - ttw - 12-09-2020, 04:33 AM
RE: Variant of the Second Method - Valentin Albillo - 12-09-2020, 05:40 AM
RE: Variant of the Second Method - Albert Chan - 12-09-2020, 04:38 PM
RE: Variant of the Secant Method - Albert Chan - 12-09-2020, 11:51 PM
RE: Variant of the Secant Method - Namir - 12-10-2020, 01:54 PM
RE: Variant of the Secant Method - Namir - 12-10-2020, 02:56 PM
RE: Variant of the Secant Method - Albert Chan - 12-11-2020, 04:34 PM
RE: Variant of the Secant Method - Albert Chan - 12-11-2023, 03:25 PM
RE: Variant of the Secant Method - Albert Chan - 12-11-2020, 04:46 PM
RE: Variant of the Secant Method - Namir - 12-12-2020, 04:22 AM
RE: Variant of the Secant Method - ttw - 12-12-2020, 02:41 PM
RE: Variant of the Secant Method - Albert Chan - 12-12-2020 04:27 PM
RE: Variant of the Secant Method - Thomas Klemm - 12-16-2023, 08:11 PM
|
User(s) browsing this thread: 1 Guest(s)