# square_minimal_rule

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 unit square in 2D, by Mattia Festa and Alvise Sommariva.

### Languages:

square_minimal_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:

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

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).

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_grid, a python code which computes a grid of points over the interior of a square in 2d.

square_integrals, a python code which returns the exact value of the integral of any monomial over the interior of the unit square in 2d.

square_monte_carlo, a python code which uses the monte carlo method to estimate the integral of a function over the interior of the unit square in 2d.

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].

### Reference:

1. Mattia Festa, Alvise Sommariva,
Computing almost minimal formulas on the square,
Journal of Computational and Applied Mathematics,
Volume 17, Number 236, November 2012, pages 4296-4302.

### Source Code:

Last revised on 24 February 2018.