Error propagation in adaptive Simpson algorithm
|
08-01-2018, 04:28 PM
Post: #11
|
|||
|
|||
RE: Error propagation in adaptive Simpson algorithm
Quote:Dieter wrote: The adaptive algorithm I implemented uses the exact same extrapolation, somewhat disguised in the code but it's there as Snew+ (Snew-Sold)/15 . It does it for each individual strip. Quote:Dieter wrote:Exactly, which means we can play with the criteria, since "nobody" knows the right answer. Ideally I want the final output to be close to the tolerance the user provided, so if the user wants 1E-8 we don't waste a lot of time computing beyond that. So I think my relaxed tolerance, which still overshoots accuracy by a long shot, is a fair compromise. Quote:Albert Chan wrote: Yes, normally I wouldn't care and agree with you that it's better to be conservative. However, we are deciding between getting the answer you want within a few seconds or waiting a long time (in other words, whether the calculator would be useful or not to the user). On a PC, both cases would feel instantaneous, so it wouldn't make sense to sacrifice accuracy. Another good point (that Dieter made clear) is that we are really comparing that tolerance with the difference between two consecutive runs, on a little single strip, which is very loosely related to the actual tolerance on the total area, and I think that's why there is a disconnect between the tolerance the user requests on the final result and the tolerance we should be comparing to. In the end, the user is getting way more than requested, at the expense of a lot of wasted time and coffee. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)