HOME

TheInfoList



OR:

The Gauss–Kronrod quadrature formula is an adaptive method for
numerical integration In analysis, numerical integration comprises a broad family of algorithms for calculating the numerical value of a definite integral, and by extension, the term is also sometimes used to describe the numerical solution of differential equatio ...
. It is a variant of
Gaussian quadrature In numerical analysis, a quadrature rule is an approximation of the definite integral of a function, usually stated as a weighted sum of function values at specified points within the domain of integration. (See numerical integration for mor ...
, in which the evaluation points are chosen so that an accurate approximation can be computed by re-using the information produced by the computation of a less accurate approximation. It is an example of what is called a nested quadrature rule: for the same set of function evaluation points, it has two quadrature rules, one higher order and one lower order (the latter called an ''embedded'' rule). The difference between these two approximations is used to estimate the calculational error of the integration. These formulas are named after
Alexander Kronrod Aleksandr Semyonovich Kronrod (russian: Алекса́ндр Семёнович Кронро́д; October 22, 1921 – October 6, 1986) was a Soviet mathematician and computer scientist, best known for the Gauss–Kronrod quadrature formula wh ...
, who invented them in the 1960s, and
Carl Friedrich Gauss Johann Carl Friedrich Gauss (; german: Gauß ; la, Carolus Fridericus Gauss; 30 April 177723 February 1855) was a German mathematician and physicist who made significant contributions to many fields in mathematics and science. Sometimes refer ...
.


Description

The problem in numerical integration is to approximate definite integrals of the form :\int_a^b f(x)\,dx. Such integrals can be approximated, for example, by ''n''-point
Gaussian quadrature In numerical analysis, a quadrature rule is an approximation of the definite integral of a function, usually stated as a weighted sum of function values at specified points within the domain of integration. (See numerical integration for mor ...
:\int_a^b f(x)\,dx \approx \sum_^n w_i f(x_i), where ''w''''i'', ''x''''i'' are the weights and points at which to evaluate the function ''f''(''x''). If the interval 'a'', ''b''is subdivided, the Gauss evaluation points of the new subintervals never coincide with the previous evaluation points (except at the midpoint for odd numbers of evaluation points), and thus the integrand must be evaluated at every point. Gauss–Kronrod formulas are extensions of the Gauss quadrature formulas generated by adding n+1 points to an n-point rule in such a way that the resulting rule is of order 3n+1 (; the corresponding Gauss rule is of order 2n-1). These extra points are the zeros of Stieltjes polynomials. This allows for computing higher-order estimates while reusing the function values of a lower-order estimate. The difference between a Gauss quadrature rule and its Kronrod extension are often used as an estimate of the approximation error.


Example

A popular example combines a 7-point Gauss rule with a 15-point Kronrod rule . Because the Gauss points are incorporated into the Kronrod points, a total of only 15 function evaluations are needed. : The integral is then estimated by the Kronrod rule K15 and the error can be estimated as , G7-K15, . For an arbitrary interval ,b/math> the node positions x_i and weights w_i are scaled to the interval as follows: :x_=\frac(b-a)+a :w_=w_i\frac showed how to find further extensions of this type, and proposed improved
algorithm In mathematics and computer science, an algorithm () is a finite sequence of rigorous instructions, typically used to solve a class of specific problems or to perform a computation. Algorithms are used as specifications for performing ...
s, and finally the most efficient algorithm was proposed by . Quadruple precision (34 decimal digits) coefficients for (G7, K15), (G10, K21), (G15, K31), (G20, K41) and others are computed and tabulated.


Implementations

Routines for Gauss–Kronrod quadrature are provided by the
QUADPACK QUADPACK is a FORTRAN 77 library for numerical integration of one-dimensional functions. It was included in the SLATEC Common Mathematical Library and is therefore in the public domain. The individual subprograms are also available on netlib ...
library, the
GNU Scientific Library The GNU Scientific Library (or GSL) is a software library for numerical computations in applied mathematics and science. The GSL is written in C; wrappers are available for other programming languages. The GSL is part of the GNU Project and is ...
, the
NAG Numerical Libraries The NAG Numerical Library is a software product developed and sold by The Numerical Algorithms Group Ltd. It is a software library of numerical analysis routines, containing more than 1,900 mathematical and statistical algorithms. Areas covered by ...
, R, the
C++ C++ (pronounced "C plus plus") is a high-level general-purpose programming language created by Danish computer scientist Bjarne Stroustrup as an extension of the C programming language, or "C with Classes". The language has expanded significan ...
library Boost., as well as the Julia package quadGK.jl


See also

*
Clenshaw–Curtis quadrature Clenshaw–Curtis quadrature and Fejér quadrature are methods for numerical integration, or "quadrature", that are based on an expansion of the integrand in terms of Chebyshev polynomials. Equivalently, they employ a change of variables x = \cos ...
, another nested quadrature rule with similar accuracy


Notes


References

* * * (Authorized translation from the Russian) * (Reference guide for QUADPACK) * . Erratum in ''Math. Comput.'' 23: 892. * * *


External links


QUADPACK (part of SLATEC)
source cod

QUADPACK is a collection of algorithms, in Fortran, for numerical integration based on Gauss-Kronrod rules.
SLATEC SLATEC Common Mathematical Library is a FORTRAN 77 library of over 1400 general purpose mathematical and statistical routines. The code was developed at US Government research laboratories and is therefore public domain software. "SLATEC" is an a ...
(at
Netlib Netlib is a repository of software for scientific computing maintained by AT&T, Bell Laboratories, the University of Tennessee and Oak Ridge National Laboratory. Netlib comprises many separate programs and libraries. Most of the code is written in ...
) is a large public domain library for numerical computing.
ALGLIB source code in C#, C++, Delphi & Visual Basic
{{DEFAULTSORT:Gauss-Kronrod quadrature formula Numerical integration (quadrature)