# square_symq_rule

square_symq_rule, an Octave code which returns symmetric quadrature rules, with exactness up to total degree 20, over the interior of the unit square, by Hong Xiao and Zydrunas Gimbutas.

The original source code, from which this library was developed, is available from the Courant Mathematics and Computing Laboratory, at https://www.cims.nyu.edu/cmcl/quadratures/quadratures.html ,

### Languages:

square_symq_rule is available in a C version and a C++ version and a Fortran90 version and a MATLAB version and a Octave version and a Python version.

### Related Data and Programs:

alpert_rule, an Octave code which sets up an Alpert quadrature rule for functions which are regular, log(x) singular, or 1/sqrt(x) singular.

annulus_rule, an Octave code which computes a quadrature rule for estimating integrals of a function over the interior of a circular annulus in 2d.

cube_felippa_rule, an Octave code which returns a Felippa quadrature rule over the interior of a cube in 3d.

hexagon_stroud_rule, an Octave code which computes one of four Stroud quadrature rules over the interior of the unit hexagon.

pyramid_felippa_rule, an Octave code which returns a Felippa quadrature rule for approximating integrals over the interior of a pyramid in 3d.

square_arbq_rule, an Octave code which returns quadrature rules, with exactness up to total degree 20, over the interior of the square in 2d, by Hong Xiao and Zydrunas Gimbutas.

square_felippa_rule, an Octave code which returns a Felippa quadrature rule over the interior of a square in 2d.

square_grid, an Octave code which computes a grid of points over the interior of a square in 2d.

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

square_minimal_rule, an Octave code which returns "almost minimal" quadrature rules, with exactness up to total degree 55, over the interior of the square in 2d, by Mattia Festa and Alvise Sommariva.

square_monte_carlo, an Octave code which uses the Monte Carlo method to estimate the integral of a function over the interior of the unit square in 2d.

stroud, an Octave code which defines quadrature rules for a variety of m-dimensional regions, including the interior of the square, cube and hypercube, the pyramid, cone and ellipse, the hexagon, the m-dimensional octahedron, the circle, sphere and hypersphere, the triangle, tetrahedron and simplex, and the surface of the circle, sphere and hypersphere.

tetrahedron_arbq_rule, an Octave code which returns quadrature rules, with exactness up to total degree 15, over the interior of a tetrahedron in 3d, by Hong Xiao and Zydrunas Gimbutas.

tetrahedron_felippa_rule, an Octave code which returns a Felippa quadrature rule over the interior of a tetrahedron.

triangle_fekete_rule, an Octave code which defines a Fekete rule for quadrature or interpolation over the interior of a triangle in 2d.

triangle_felippa_rule, an Octave code which returns a Felippa quadrature rule for approximating integrals over the interior of a triangle in 2d.

triangle_symq_rule, an Octave code which returns symmetric quadrature rules, with exactness up to total degree 50, over the interior of a triangle in 2d, by Hong Xiao and Zydrunas Gimbutas.

wedge_felippa_rule, an Octave code which returns quadratures rules for approximating integrals over the interior of the unit wedge in 3d.

### Reference:

1. Hong Xiao, Zydrunas Gimbutas,
A numerical algorithm for the construction of efficient quadrature rules in two and higher dimensions,
Computers and Mathematics with Applications,
Volume 59, 2010, pages 663-676.

### Source Code:

Last revised on 10 June 2023.