Simpson revival
|
07-31-2018, 02:57 PM
(This post was last modified: 07-31-2018 06:42 PM by Albert Chan.)
Post: #14
|
|||
|
|||
RE: Simpson revival
(09-28-2016 03:50 PM)Namir Wrote: Version 1 gave better results. These results seem counter intuitive, since I expected version 2 to give a better final result. Hi, Namir From the book SICP, I think I know why your version 2 does not give expected better estimate. The trick is not just apply correction based on 2 iterations, but from all previous iterations. (09-28-2016 10:00 PM)Dieter Wrote: Let f(x) = 1/x and integrate it from 1 to 2. The first estimate is correct: T1 + (T1-T0)/(16-1) = 0.693174603175 However, second estimate should apply correction again, from previous estimate. T1 + (T1-T0)/(64-1) = 0.693147901481 + (-2.67017e-05)/63 = 0.693147477645 Third estimate need 3 corrections (/15, /63, /255), ... This is the revised table. Code: n Standard Simpson Error Improved Error Edit: After reading the whole thread, it seems the code is not trying to use Romberg's method. All it wanted was the first approximation of Romberg's extrapolation. Sorry for the noise. Anyway, this is what Romberg's method would look like ... |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Simpson revival - Pekis - 09-28-2016, 08:04 AM
RE: Simpson revival - Namir - 09-28-2016, 10:40 AM
RE: Simpson revival - Dieter - 09-28-2016, 12:25 PM
RE: Simpson revival - Namir - 09-28-2016, 02:00 PM
RE: Simpson revival - Namir - 09-28-2016, 03:50 PM
RE: Simpson revival - Dieter - 09-28-2016, 10:00 PM
RE: Simpson revival - Albert Chan - 07-31-2018 02:57 PM
RE: Simpson revival - Namir - 09-29-2016, 04:44 PM
RE: Simpson revival - Dieter - 09-29-2016, 06:23 PM
RE: Simpson revival - Namir - 09-29-2016, 10:27 PM
RE: Simpson revival - Dieter - 09-30-2016, 06:00 AM
RE: Simpson revival - Dieter - 10-02-2016, 03:29 PM
RE: Simpson revival - Namir - 10-02-2016, 04:48 PM
RE: Simpson revival - Namir - 10-09-2016, 03:14 AM
RE: Simpson revival - Albert Chan - 08-04-2018, 05:29 PM
|
User(s) browsing this thread: 3 Guest(s)