ALPERT_RULE
Alpert Quadrature for regular, log singular, and power singular functions


ALPERT_RULE is a Python library which has tabulated values that define Alpert quadrature rules of a number of orders of accuracy for functions that are regular, log singular, or power singular.

The rules defined here assume that the integral is to be taken over the interval [0,1]. The interval is divided into N+1 intervals. The leftmost and rightmost intervals are handled in a special way, depending on whether a particular kind of singularity is expected.

A singularity may exist at the left endpoint, x = 0. The cases are:

In case one, the regular Alpert rule is used in both end intervals. In case two, the power singular Alpert rule is used in the leftmost interval. In case three, the log singular Alpert rule is used in the leftmost interval.

Licensing:

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

Languages:

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

Related Data and Programs:

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.

QUADRULE, a Python library which contains 1-dimensional quadrature rules.

Reference:

  1. Bradley Alpert,
    Hybrid Gauss-Trapezoidal Quadrature Rules,
    SIAM Journal on Scientific Computing,
    Volume 20, Number 5, pages 1551-1584, 1999.

Source Code:

Examples and Tests:

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


Last revised on 06 December 2015.