Quadrature methods#
Currently, the following quadrature methods are implemented, sorted according to their geometry.
The first entry denotes the input string for the method specification, cf. the
method_spec
parameter in openquad.Rn
.
\(\mathbb{R}^1\) methods#
GaussLegendre
: Gauss-Legendre quadratureGaussLegendreLobatto
: Gauss-Lobatto-Legendre quadratureTrapezoid
: Composite trapezoidal rule, seescipy.integrate.trapezoid()
Simpson
: Composite Simpson’s rule, seescipy.integrate.simpson()
Romberg
: Romberg’s method, seescipy.integrate.romberg()
1d-MonteCarlo
:Monte Carlo integration
These methods need the following additional keyword paramters:
size
: float: Number of sampling points.degree
: float: Degree of exactness. For Gauss methods alternative tosize
.a
: float: Lower boundary of the integral.b
: float: Upper boundary of the integral.jacobian
: callable, optional: Jacobian to apply to the coordinate.periodic
: logical, optinal: IfTrue
, assume periodic boundary conditions.
\(\mathrm{S}^2\) methods#
S2-Gauss-LebedevLaikov
: spherical Gauss quadrature from Lebedev-LaikovS2-Gauss-Graef
: spherical Gauss qudarature from Manuel GräfS2-Design-Graef
: spherical designs from Manuel GräfS2-Design-Womersley
: spherical designs from Robert WomersleyS2-Covering-Fibonacci
: near-uniform coverings based on Fibonacci numbersS2-Covering-ZCW
: near-uniform coverings with the ZCW methodS2-MonteCarlo
: Monte Carlo integration
These methods need the following additional keyword paramters:
size
: float: Number of sampling points.degree
: float: Degree of exactness. For Gauss methods and spherical desings alternative tosize
.
\(\mathrm{SO}(3)\) methods#
SO3-Gauss-Graef
: spherical Gauss qudarature from Manuel GräfSO3-Chebyshev-Graef
: spherical Chebyshev quadrature from Manuel GräfSO3-Covering-Karney
: near-uniform coverings from Charles KarneySO3-MonteCarlo
: Monte Carlo integration
These methods need the following additional keyword paramters:
size
: float: Number of sampling points.degree
: float: Degree of exactness. For Gauss and Chebyshev methods alternative tosize
.
Note
The following extensions are planned for the next release:
Implementing the three-dimensional unit sphere, \(\mathrm{S}^3\).
Adding spherical desings and coverings from Neil Sloane and Ronald Hardin.
Providing a way to use \(\mathrm{S}^3\) quadratures for \(\mathrm{SO}(3)\) and vice versa.
Implementing a class for the unit circle, \(\mathrm{S}^1\).
and more…