This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / interpolate / _interpolate / BPoly / integrate

function

scipy.interpolate._interpolate:BPoly.integrate

source: build-install/usr/lib/python3.14/site-packages/scipy/interpolate/_interpolate.py:2160

Signature

def integrate(self, a, b, extrapolate = None)

Summary

Compute a definite integral over a piecewise polynomial.

Parameters

a : float

Lower integration bound

b : float

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]

Aliases

  • scipy.interpolate.BPoly.integrate