Lambert W Function (hp-42s)
|
10-02-2020, 03:02 PM
Post: #38
|
|||
|
|||
RE: Lambert W Function (hp-42s)
(09-30-2020 05:28 PM)Albert Chan Wrote: y ← y - (y*ln(y) - x) / (ln(y) + 1) It's rather the y+x that is the culprit - or y*ln(y)-x, which is zero as you pointed out. LN(y)+1 for y close to 1/e can be calculated precisely as (LN1P being the LN1+X function) LN(y) + 1 = LN((1/e)*(1+e*(y-1/e)) + 1 = -1 + LN1P(e*(y-1/e)) + 1 = LN1P(e*(y-1/e)) eg. y = 1/e + 1e-17 then LN(y) + 1 = 2.71828182845904521e-17 LN1P(e*(y-1/e)) = 2.718281828459045198415006976699411e-17 But the cancellation happens also in y + x, and there's nothing we can do. Or at least, nothing *I* can do ;-) Cheers, Werner 41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE,DM15L,12C,16CE |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)