triangle01_integrals


triangle01_integrals, a C++ code which returns the exact value of the integral of any monomial over the interior of the unit triangle in 2D.

The interior of the unit triangle in 2D is defined by

        0 <= x
        0 <= y
             x + y <= 1
      

The integrands are all of the form

        f(x,y) = x^e1 * y^e2
      
where the exponents are nonnegative integers.

Licensing:

The information on this web page is distributed under the MIT license.

Languages:

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

Related Data and Programs:

triangle01_integrals_test

cpp_integrals, a C++ code which returns the exact value of the integral of any monomial over a line, square, cube, a polygon, a circle, a disk, a sphere, a ball, a triangle, a tetrahedron, a simplex, and various other geometric regions.

triangle_dunavant_rule, a C++ code which sets up a Dunavant quadrature rule over the interior of a triangle in 2D.

triangle_fekete_rule, a C++ code which defines Fekete rules for interpolation or quadrature over the interior of a triangle in 2D.

triangle_felippa_rule, a C++ code which returns a Felippa quadrature rule for approximating integrals over the interior of a triangle in 2D.

triangle_lyness_rule, a C++ code which returns Lyness-Jespersen quadrature rules over the interior of a triangle in 2D.

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

triangle_wandzura_rule, a C++ code which sets up a quadrature rule of exactness 5, 10, 15, 20, 25 or 30 over the interior of a triangle in 2D.

triangle01_monte_carlo, a C++ code which uses the Monte Carlo method to estimate integrals over the interior of the unit triangle in 2D.

Source Code:


Last revised on 03 May 2020.