TEST_TRI_INT is a MATLAB library which defines test functions to be integrated over a triangle.
It is possible to invoke a particular function by number, or to try out all available functions, as demonstrated in the sample calling program.
For convenience, all the integrand functions have been scaled by a constant, so that the integral of the function over the specific domain is exactly 1.
The test functions include F(X,Y)=
The library includes a routines to define the integrand function, the triangle over which the integral is to be carried out, and a title for the problem. Thus, for each integrand function, four routines are supplied. For instance, for function #4, we have the routines:
Moreover, since the same interface is used for each function, if you wish to work with problem 16 instead, you simply change the "04" to "07" in your routine calls.
If you wish to call all of the functions, then you simply use the generic interface, which again has four routines, but which requires you to specify the problem number as an extra input argument:
Finally, some demonstration routines are built in for simple quadrature methods. These routines include
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
DUNAVANT is a MATLAB library which defines Dunavant rules for quadrature on a triangle.
FEKETE is a MATLAB library which defines a Fekete rule for quadrature or interpolation over a triangle.
GM_RULES is a MATLAB library which defines a Grundmann-Moeller rule for quadrature over a triangle, tetrahedron, or general M-dimensional simplex.
INTLIB is a FORTRAN90 library which numerically estimates integrals in one dimension.
NCC_TRIANGLE is a MATLAB library which defines Newton-Cotes closed quadrature rules on a triangle.
NCO_TRIANGLE is a MATLAB library which defines Newton-Cotes open quadrature rules on a triangle.
NINT_EXACTNESS_TRI is a MATLAB program which investigates the polynomial exactness of a quadrature rule for the triangle.
NINTLIB is a MATLAB library which numerically estimates integrals in multiple dimensions.
QUADPACK is a FORTRAN90 library which estimates integrals in one dimension.
QUADRULE is a MATLAB library which defines quadrature rules on a variety of intervals with different weight functions.
QUADRULE_FAST is a MATLAB library which defines efficient versions of a few 1D quadrature rules.
STRI_QUAD is a FORTRAN90 library which can approximate the integral of a function over the surface of a sphere.
STROUD is a MATLAB library which includes some quadrature rules for triangles.
TEST_NINT is a MATLAB library which tests N-dimensional quadrature routines.
TEST_TRI_INT is available in a C++ version and a FORTRAN90 version and a MATLAB version.
TOMS612 is a FORTRAN77 library which can estimate the integral of a function over a triangle.
TOMS706 is a FORTRAN77 library which estimates the integral of a function over a triangulated region.
TRIANGLE_MONTE_CARLO, a MATLAB program which uses the Monte Carlo method to estimate integrals over a triangle.
TRIANGULATION is a MATLAB library which can be used for triangulations, and includes some quadrature rules on triangles.
WANDZURA is a MATLAB library which defines Wandzura rules for quadrature on a triangle.
A GZIP'ed TAR file of the contents of this directory is available. This is only done as a convenience for users who want ALL the files, and don't want to download them individually. This is not a convenience for me, so don't be surprised if the tar file is somewhat out of date.
You can go up one level to the MATLAB source codes.