Monte Carlo and Simpson method v0.1.0
Integral
View Source
Monte carlo integration method.
Simpson integration method.
Monte carlo integration method.
Examples
iex> Integral.monte_carlo_method(fn x -> x end, 0, 10)
50.06474343307806
Simpson integration method.
Examples
iex> Integral.simpson_method(fn x -> x end, 0, 10)
50.00000000000001