Welcome to Integrate’s documentation!

This is a small library that does basic Newton-Cotes and Monte Carlo integration

integrate.newton_cotes.simpson.evaluate(bounds, func)

Evaluates simpsons rules on an array of values and a function pointer.

\[\int_{a}^{b} = \sum_i ...\]
Parameters:
  • bounds (array_like) – An array with a dimension of two that contains the starting and ending points for the integrand.
  • func (function) – A function being evaluted in this integral
Returns:

integral – The integral of function (func) between the bounds

Return type:

float

Indices and tables