triangle_monte_carlo, a Fortran90 code which uses the Monte Carlo method to estimate the integral of a function F(X,Y) over the interior of a general triangle in 2D.
The library makes it relatively easy to compare different methods of producing sample points in the triangle, and 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.
f90_monte_carlo, a Fortran90 code which uses Monte Carlo sampling to estimate areas and integrals.