triangle_fekete_rule, a C code which returns any of seven Fekete rules for interpolation and quadrature over the interior of a triangle in 2D.
Fekete points can be defined for any region OMEGA. To define the Fekete points for a given region, let Poly(N) be some finite dimensional vector space of polynomials, such as all polynomials of degree less than L, or all polynomials whose monomial terms have total degree less than some value L.
Let P(1:M) be any basis for Poly(N). For this basis, the Fekete points are defined as those points Z(1:M) which maximize the determinant of the corresponding Vandermonde matrix:
V = [ P1(Z1) P1(Z2) ... P1(ZM) ] [ P2(Z1) P2(Z2) ... P2(ZM) ] ... [ PM(ZM) P2(ZM) ... PM(ZM) ]
The seven rules have the following orders and precisions:
Rule | Order | Precision |
---|---|---|
1 | 10 | 3 |
2 | 28 | 6 |
3 | 55 | 9 |
4 | 91 | 12 |
5 | 91 | 12 |
6 | 136 | 15 |
7 | 190 | 18 |
On the triangle, it is known that some Fekete points will lie on the boundary, and that on each side of the triangle, these points will correspond to a set of Gauss-Lobatto points.
The information on this web page is distributed under the MIT license.
triangle_fekete_rule is available in a C version and a C++ version and a Fortran90 version and a MATLAB version and an Octave version.
c_rule, a C code which computes a quadrature rule which estimates the integral of a function f(x), which might be defined over a one dimensional region (a line) or more complex shapes such as a circle, a triangle, a quadrilateral, a polygon, or a higher dimensional region, and which might include an associated weight function w(x).
triangle_exactness, a C code which investigates the polynomial exactness of a quadrature rule over the interior of a triangle in 2D.
triangle_integrals, a C code which returns the exact value of the integral of any monomial over the interior of the unit triangle in 2D.
triangle_interpolate, a C code which shows how vertex data can be interpolated at any point in the interior of a triangle.
triangle_monte_carlo, a C code which uses the Monte Carlo method to estimate integrals over the interior of a triangle in 2D.