polygon_monte_carlo_test, a C code which calls polygon_monte_carlo() to apply a Monte Carlo method to estimate the integral of a function over the interior of a polygon in 2D.
The computer code and data files made available on this web page are distributed under the MIT license
polygon_monte_carlo, a C code which applies a Monte Carlo method to estimate the integral of a function over the interior of a polygon in 2D.