Lambert W Function (hp-42s)
|
05-20-2020, 03:25 PM
(This post was last modified: 05-20-2020 05:37 PM by Albert Chan.)
Post: #11
|
|||
|
|||
RE: Lambert W Function (hp-42s)
(05-19-2020 12:29 AM)Albert Chan Wrote: g = lambda y,a: (y+a)/(log(y)+1) Both Newton's iteration formula are equivalent, but going for y converge faster. (try plotting x*exp(x) vs x*ln(x), 2nd curve slope = 1+ln(x), does not vary as much) W(a) = x x * exp(x) = a Let y = exp(x), we have y * ln(y) = a Newton's iteration: y ← y - (y*ln(y)-a) / (ln(y)+1) = (y+a) / (ln(y)+1) When y converged, y = exp(x) = a/x, we have W(a) = ln(y) = a/y |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)