triangle_monte_carlo, a Python code which estimates the integral of a function over a general triangle using the Monte Carlo method.
The code makes it easy to vary the triangle over which integration is carried out.
The information on this web page is distributed under the MIT license.
triangle_monte_carlo 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.
python_monte_carlo, a Python code which uses Monte Carlo sampling to estimate areas and integrals.
triangle_witherden_rule, a Python code which returns a symmetric Witherden quadrature rule for the triangle, with exactness up to total degree 20.