Skip to main content

Module quad_vec

Module quad_vec 

Source
Expand description

Adaptive integration of vector-valued functions over finite or infinite intervals, a port of SciPy’s quad_vec: every component shares one set of subintervals, chosen by a global Gauss-Kronrod error estimate in the 2-norm (or the max norm).

See the book entry Vector integrands and weighted quadrature.

Structs§

QuadVecOptions
Options for quad_vec (SciPy’s defaults).
QuadVecResult
The result of quad_vec.

Enums§

VecNorm
How the error of a vector of integrals is measured.
VecRule
The local rule applied to each subinterval.

Functions§

quad_vec
∫_a^b f(x) dx for vector-valued f (SciPy’s quad_vec), with infinite limits allowed. The interval list starts from [a, b] split at points; each round pops the subintervals with the largest errors (up to 128, while their errors exceed all but an eighth of the tolerance) and bisects them, updating the global integral and error by the differences. It stops when the global error is below max(epsabs, epsrel ‖I‖)/8, or when it falls below the accumulated rounding error, or at limit subintervals. Infinite intervals are first mapped to [0, 1] (x = a + (1 − t)/t) or [−1, 1] (x = (1 − |t|)/t).