line_monte_carlo


line_monte_carlo, a Python code which uses the Monte Carlo method to estimate the integral of a function over the length of the unit line in 1D.

Licensing:

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

Languages:

line_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.

Related Data and Programs:

line_grid, a Python code which computes a grid of points over the interior of a line segment in 1d.

line_integrals, a Python code which returns the exact value of the integral of any monomial over the length of the unit line in 1d.

python_monte_carlo, a Python code which uses Monte Carlo sampling to estimate areas and integrals.

Source Code:


Last revised on 02 February 2020.