HP71B Integral Questions
|
02-03-2020, 04:15 PM
(This post was last modified: 04-14-2021 12:52 AM by Albert Chan.)
Post: #4
|
|||
|
|||
RE: HP71B Integral Questions
(02-03-2020 03:00 PM)J-F Garnier Wrote: Is the 8-level Romberg scheme close to the Richardson Extrapolations you used? Romberg's method ≡ Richardson Extrapolations applied to Trapezoids area. I did the u-transformed trapezoids area in Lua, then copy/paste to Excel Code: function u(f, a, b) -- u-transformed f lua> a, b, c = 6.371e6, 9.4607304725808e15, 3.98589196e17 lua> exp, log = math.exp, math.log lua> function fna(x) return c/exp(x) end lua> t = trapezoid(u(fna, log(a), log(b)), -1, 1) lua> for i=1,7 do print(2^i, t()) end 2 25715027.086919405 4 13721555535.80971 8 50890703123.90066 16 59914609212.0083 32 61913859849.80031 64 62401515156.47649 128 62522713769.32443 Only 2 formulas used in Excel, one for the weight, second for the extrapolation. Others are just copies. With this setup, Simpson's rule have weight of 3, Boole's rule have weight of 15, ... Code: A B C |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 5 Guest(s)