|
From: James R. V. Z. <jr...@co...> - 2006-06-24 21:47:56
|
Daniel J Sebald <dan...@ie...> wrote:
> James R. Van Zandt wrote:
> > Daniel J Sebald <dan...@ie...> wrote:
> >
> >> Paging through all.dem, something caught my eye in the bivariat.dem demo.
> >> ...
> >> The first example is of approximating integration of a function.
> >> Unfortunately it appears to be a bad approximation.
> >
> >
> > I looked the integration demo some time ago. Attached are some
> > suggested changes. It might be worth while including two versions -
> > one to show the basic approach, and the other to show possible
> > refinements that improve the results at the cost of some obscurity.
>
> Not following what you mean. Do you mean use a lower order
> approximation such as trapezoidal to compare against Simpson's
> rule?
I'm just thinking it would be easier for the user to study the
original program first, then the more sophisticated one.
...
> Very nice. Could add a note about the accuracy of the third order
> Simpson's for approximating a second order function at the sample
> points, i.e., exact. Is that the kind of thing you meant?
Yes.
- Jim Van Zandt
|