Expand description
Gauss quadrature rules for numerical integration
This module provides quadrature rules for approximating integrals by weighted sums.
The integral of f(x) * omega(x) is approximated by a weighted sum:
sum(f(xi) * wi for (xi, wi) in zip(x, w))
where we generally have superexponential convergence for smooth f(x) with the number of quadrature points.
Structs§
- Rule
- Quadrature rule for numerical integration.
Functions§
- legendre
- The Gauss-Legendre rule with
npoints on [-1, 1], inT, by Newton’s method on the Legendre polynomial - legendre_
vandermonde - Create Legendre Vandermonde matrix for polynomial interpolation