hexagon_monte_carlo_test, a MATLAB code which calls hexagon_monte_carlo(), which applies a Monte Carlo method to estimate the integral of a function over the interior of a hexagon.
The information on this web page is distributed under the MIT license.
hexagon_monte_carlo a MATLAB code which uses the Monte Carlo method to estimate the integral of a function over the interior of a hexagon in 2D.