Skip to main content

Module cubature

Module cubature 

Source
Expand description

Multidimensional integration over hyperrectangles: tensor-product Gauss-Legendre rules and globally adaptive Genz-Malik cubature.

See the book entry Multidimensional cubature.

Structs§

CubatureOptions
Options for adaptive_cubature.
CubatureResult
The outcome of a cubature.

Functions§

adaptive_cubature
Globally adaptive cubature over a hyperrectangle with the Genz-Malik degree-7 rule (2ⁿ + 2n² + 2n + 1 points per region) and its embedded degree-5 rule for error estimation. The region with the largest error is repeatedly bisected along the axis with the largest fourth divided difference, until the summed error meets max(absolute, relative · |value|) or the evaluation budget is spent. Suited to smooth integrands in two to about ten dimensions; for higher dimensions use quasi-Monte Carlo.
tensor_gauss_legendre
The tensor-product Gauss-Legendre rule with points_per_axis nodes along every axis: exact for polynomials of degree 2·points − 1 in each variable, at a cost of pointsᵈ evaluations (practical up to about five dimensions).