QUADRULE
Quadrature Rules


QUADRULE is a Python library which sets up a variety of quadrature rules, used to approximate the integral of a function over various domains in 1D.

QUADRULE returns the abscissas and weights for a variety of one dimensional quadrature rules for approximating the integral of a function. The best rule is generally Gauss-Legendre quadrature, but other rules offer special features, including the ability to handle certain weight functions, to approximate an integral on an infinite integration region, or to estimate the approximation error.

Licensing:

The files described and made available on this web page are distributed under the GNU LGPL license.

Languages:

QUADRULE is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version and a Python version.

Related Programs:

ALPERT_RULE, a Python library which can set up an Alpert quadrature rule for functions which are regular, log(x) singular, or 1/sqrt(x) singular.

DISK_RULE, a Python library which computes quadrature rules over the interior of the general disk in 2D, with radius RC and center (XC,YC).

DISK01_RULE, a Python library which computes quadrature rules over the interior of the unit disk in 2D, with center (0,0) and radius 1.

EXACTNESS, a Python library which investigates the exactness of quadrature rules that estimate the integral of a function with a density, such as 1, exp(-x) or exp(-x^2), over an interval such as [-1,+1], [0,+oo) or (-oo,+oo).

KRONROD, a Python library which can compute a Gauss and Gauss-Kronrod pair of quadrature rules of arbitrary order, by Robert Piessens, Maria Branders.

TRUNCATED_NORMAL, a Python library which works with the truncated normal distribution over [A,B], or [A,+oo) or (-oo,B], returning the probability density function (PDF), the cumulative density function (CDF), the inverse CDF, the mean, the variance, and sample values.

TRUNCATED_NORMAL_RULE, a Python program which computes a quadrature rule for a normal distribution that has been truncated to [A,+oo), (-oo,B] or [A,B].

Source Code:

Examples and Tests:

You can go up one level to the Python source codes.


Last revised on 19 November 2015.