Main       Download       Commercial support       FAQ       Forum       About Us

Gauss-Kronrod quadrature

Gauss-Kronrod quadrature formula is an extension of the Gaussian quadrature formula that allows for calculating integral value and estimate of its error. This is achieved by adding to M-point Gauss quadrature formula additional nodes that allow for more precise integral calculation. The difference between integral value calculated with the M-point formula and the integral value calculated using 2M+1-point formula, is used as a measure of integration error.

Application

Due to their efficiency Gauss-Kronrod quadrature formulas are frequently used as a basic element of adaptive integrators. As a rule, the formulas used don't have high powers (usually from 15 to 60 nodes). High power formulas are not used because of the complexities that arise when calculating integrals of functions, which are not smooth enough.

Limitations of Gauss-Kronrod quadratures

Gaussian quadrature formula exists for any integral of the following type:

if W(x) > 0. The nodes of quadrature formula are always located at [a,b], weight factors are strictly positive. Above said is applicable to Gauss-Kronrod quadrature formulas only in certain cases. For instance, for some W(x) functions the Gauss-Kronrod quadrature formula can have nodes beyond the boundaries of the interval [a,b] or even in complex points. Thus, when generating a formula for an arbitrary weight function W(x) please beware of the fact that for your function there might not be a suitable quadrature formula. However, in the particular case of W(x)=1 it is proven that all the formula nodes are at the integration interval and the quadrature formula can always be found.

Manual entries

C++ gkq subpackage   
C# gkq subpackage   

This article is intended for personal use only.

Download ALGLIB

C#

C# source.

Downloads page

 

C++

C++ source.

Downloads page

 

C++, multiple precision arithmetic

C++ source. MPFR/GMP is used.

GMP source is available from gmplib.org. MPFR source is available from www.mpfr.org.

Downloads page

 

FreePascal

FreePascal version.

Downloads page

 

Delphi

Delphi version.

Downloads page

 

VB.NET

VB.NET version.

Downloads page

 

VBA

VBA version.

Downloads page

 

Python

Python version (CPython and IronPython are supported).

Downloads page

 

 

ALGLIB® - numerical analysis library, 1999-2012.
ALGLIB is a registered trademark of the ALGLIB Project.