(28/48/50) Complete Elliptic Integrals
|
03-05-2024, 03:42 PM
Post: #14
|
|||
|
|||
RE: (28/48/50) Complete Elliptic Integrals
(03-04-2024 06:39 PM)Albert Chan Wrote: Lua code had been updated, instead of starting s = a², it start at 0 (see post #7) I just realized I never posted lua update. Here it is Code: function E.agm(a, b) Code: function E.K(m,c) -- K(m), E(m)-K(m), E(m) lua> eps = 1e-8 lua> E.K(1-eps, eps) 10.596634757087662 -9.596634706604487 1.000000050483174 Compare this to asymptote result for K(1-ε), E(1-ε) lua> k0 = log(16/eps)/2 lua> k0 + eps/4*(k0-1) -- ≈ K(1-eps) 10.59663475708766 lua> 1 + eps/4*(2*k0-1) -- ≈ E(1-eps) 1.0000000504831736 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)