Adaptive Quadrature - General Scheme

General Scheme

Adaptive quadrature follows the general scheme

1. procedure integrate ( f, a, b, tau ) 2. 3. 4. if then 5. m = (a + b) / 2 6. Q = integrate(f,a,m,tau/2) + integrate(f,m,b,tau/2) 7. endif 8. return Q

An approximation to the integral of over the interval is computed (line 2), as well as an error estimate (line 3). If the estimated error is larger than the required tolerance (line 4), the interval is subdivided (line 5) and the quadrature is applied on both halves separately (line 6). Either the initial estimate or the sum of the recursively computed halves is returned (line 7).

The important components are the quadrature rule itself

the error estimator

and the logic for deciding which interval to subdivide, and when to terminate.

There are, of course, several variants of this scheme. The most common will be discussed later.

Read more about this topic:  Adaptive Quadrature

Famous quotes containing the words general and/or scheme:

    We all have known
    Good critics, who have stamped out poet’s hopes;
    Good statesmen, who pulled ruin on the state;
    Good patriots, who, for a theory, risked a cause;
    Good kings, who disembowelled for a tax;
    Good Popes, who brought all good to jeopardy;
    Good Christians, who sat still in easy-chairs;
    And damned the general world for standing up.—
    Now, may the good God pardon all good men!
    Elizabeth Barrett Browning (1806–1861)

    We are all bound to the throne of the Supreme Being by a flexible chain which restrains without enslaving us. The most wonderful aspect of the universal scheme of things is the action of free beings under divine guidance.
    Joseph De Maistre (1753–1821)