SciPy

scipy.interpolate.BPoly.integrate

BPoly.integrate(a, b, extrapolate=None)[source]

Compute a definite integral over a piecewise polynomial.

Parameters
afloat

Lower integration bound

bfloat

Upper integration bound

extrapolate{bool, ‘periodic’, None}, optional

Whether to extrapolate to out-of-bounds points based on first and last intervals, or to return NaNs. If ‘periodic’, periodic extrapolation is used. If None (default), use self.extrapolate.

Returns
array_like

Definite integral of the piecewise polynomial over [a, b]

Previous topic

scipy.interpolate.BPoly.antiderivative

Next topic

scipy.interpolate.BPoly.construct_fast