API Documentation

Adaptive integration of a callable function or method

quadgk(fun, interval[, args, full_output, ...])

Global adaptive quadrature using Gauss-Kronrod rule.

quadcc(fun, interval[, args, full_output, ...])

Global adaptive quadrature using Clenshaw-Curtis rule.

quadts(fun, interval[, args, full_output, ...])

Global adaptive quadrature using trapezoidal tanh-sinh rule.

romberg(fun, interval[, args, full_output, ...])

Romberg integration of a callable function or method.

rombergts(fun, interval[, args, ...])

Romberg integration with tanh-sinh (aka double exponential) transformation.

Quadrature Rules

AbstractQuadratureRule()

Abstract base class for 1D quadrature rules.

GaussKronrodRule([order, norm])

Integrate a function from a to b using a fixed order Gauss-Kronrod rule.

ClenshawCurtisRule([order, norm])

Integrate a function from a to b using a fixed order Clenshaw-Curtis rule.

TanhSinhRule([order, norm])

Integrate a function from a to b using a fixed order Tanh-Sinh trapezoidal rule.

Integrating function from sampled values

trapezoid(y, *[, x, dx, axis])

Integrate along the given axis using the composite trapezoidal rule.

cumulative_trapezoid(y, *[, x, dx, axis, ...])

Cumulatively integrate y(x) using the composite trapezoidal rule.

simpson(y, *[, x, dx, axis])

Integrate y(x) from samples using the composite Simpson's rule.

cumulative_simpson(y, *[, x, dx, axis, initial])

Cumulatively integrate y(x) using the composite Simpson's 1/3 rule.

Low level routines and wrappers

adaptive_quadrature(rule, fun, interval[, ...])

Global adaptive quadrature.