Database
aa1096.asc
Associated article: Algorithm Alley
Tags: Database
Published source code in the article by Dann Corbit in which he approximates the value of an integral is an important kind of calculation that's not nearly as you think. Dann shows how simple it is to get good results, then discusses some new techniques that offer even better accuracy. Also see AA1096.ZIP.
_Algorithm Alley_
by Dann Corbit
Listing One
void EXPORT Integral::Evaluate() {
// We use this constant to divide the interval into two equal parts:
const long double ldHalf = 0.5e0L;
// Note that the maximum possible error is:
// -(1,346,350/326,918,592)*h^13*epsilon, where ...


