We (probably me and *Josh Kantor*? it was a while ago) wrote
numerical_integral in Sage before we had symbolics, and barely touched
it since. I was writing an example for the new SMC button bar to
illustrate numerical_integral yesterday and was struck by how archaic
it felt, in precisely some of the ways you mention above. Even having
it return a list of two numbers, rather than an interval (?) or just a
number and having an option to get the error, feels funny to me. But
of course we wrote numerical_integral before Sage had interval
arithmetic too.
I would recommend looking up what Maple and Mathematica (and Matlab)
do regarding their numerical integration API and summarizing each here
before making any decisions. All their docs are easily available
online, and I tend to thing that doing something consistent with
Mathematica (say), if it is *reasonably* sensible in Sage, is often
the best approach for this sort of thing, because it makes it easier
for people who are used to using Mathematica. I definitely don't
recommend just coming up for some completely new API for numerical
integration without even looking at what Mathematica does, though I
think that's probably what Josh Kantor and I did long ago to Sage...
William
--
William Stein
Professor of Mathematics
University of Washington
http://wstein.org