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:

    “In democratic ages men rarely sacrifice themselves for another, but they show a general compassion for all the human race. One never sees them inflict pointless suffering, and they are glad to relieve the sorrows of others when they can do so without much trouble to themselves. They are not disinterested, but they are gentle.”
    —Alexis de Tocqueville (1805–1859)

    “Television programming for children need not be saccharine or insipid in order to give to violence its proper balance in the scheme of things.... But as an endless diet for the sake of excitement and sensation in stories whose plots are vehicles for killing and torture and little more, it is not healthy for young children. Unfamiliar as yet with the full story of human response, they are being misled when they are offered perversion before they have fully learned what is sound.”
    —Dorothy H. Cohen (20th century)