alpert_rule, a Python code 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:
The computer code and data files described and made available on this web page are distributed under the MIT license
alpert_rule is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version and a Python version.
annulus_rule, a Python code which computes a quadrature rule for estimating integrals of a function over the interior of a circular annulus in 2d.
disk_rule, a Python code which computes quadrature rules over the interior of the general disk in 2D, with radius RC and center (XC,YC).
disk01_rule, a Python code which computes quadrature rules over the interior of the unit disk in 2D, with center (0,0) and radius 1.
line_ncc_rule, a Python code which computes a Newton Cotes Closed (NCC) quadrature rule, using equally spaced points, over the interior of a line segment in 1D.
quadrule, a Python code which defines quadrature rules for approximating an integral over a 1D domain.
square_minimal_rule, a Python code which returns almost minimal quadrature rules, with exactness up to total degree 55, over the interior of the symmetric square in 2D, by Mattia Festa and Alvise Sommariva.
truncated_normal_rule, a Python code which computes a quadrature rule for a normal distribution that has been truncated to [A,+oo), (-oo,B] or [A,B].