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.

This article is licensed for personal use only.

Download ALGLIB for C++ / C# / Java / Python / ...

ALGLIB Project offers you two editions of ALGLIB:

ALGLIB Free Edition:
+delivered for free
+offers full set of numerical functionality
+extensive algorithmic optimizations
-no multithreading
-non-commercial license

ALGLIB Commercial Edition:
+flexible pricing
+offers full set of numerical functionality
+extensive algorithmic optimizations
+high performance (SMP, SIMD)
+commercial license with support plan

Links to download sections for Free and Commercial editions can be found below:

ALGLIB 4.04.0 for C++

C++ library.
Delivered with sources.
Monolithic design.
Extreme portability.
Editions:   FREE   COMMERCIAL

ALGLIB 4.04.0 for C#

C# library with native kernels.
Delivered with sources.
VB.NET and IronPython wrappers.
Extreme portability.
Editions:   FREE   COMMERCIAL

ALGLIB 4.04.0 for Java

Java wrapper around HPC core.
Delivered with sources.
Seamless integration with Java.
Editions:   FREE   COMMERCIAL

ALGLIB 4.04.0 for Delphi

Delphi wrapper around C core.
Delivered as precompiled binary.
Compatible with FreePascal.
Editions:   FREE   COMMERCIAL

ALGLIB 4.04.0 for CPython

CPython wrapper around C core.
Delivered as precompiled binary.
Editions:   FREE   COMMERCIAL