lambertw, all branches
|
04-10-2023, 06:47 PM
Post: #11
|
|||
|
|||
RE: lambertw, all branches
(04-10-2023 04:44 PM)Albert Chan Wrote: Here, initial guess log1p(a) ≈ a is not good (I.log code need work ...) As expected, better complex.log make little difference. I considered Kahan's clog(z), but Python's cmath.log code is simpler. Code: function complex.log(z) lua> a = 1e-100-1e-10*I lua> I.W(a, 0, true) (5.0000000000000005e-021-1e-010*I) -- log1p(a) ≈ a - a^2/2 (1.0000000413701856e-020-1e-010*I) (1.0000000413701856e-020-1e-010*I) (1.0000000000000001e-020-1e-010*I) true |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)