Expand description
Gaussian quadrature rules: Gauss-Legendre, Gauss-Hermite and generalized Gauss-Laguerre.
An n-point Gauss rule integrates w(x) p(x) exactly for every polynomial p of degree up to
2n − 1. Nodes are the zeros of the orthogonal polynomial of degree n, found by Newton’s
method on the three-term recurrence from asymptotic starting guesses (as in Numerical
Recipes), so rules with hundreds of points are cheap and accurate to rounding.
Structs§
- Gauss
Legendre Engine - Integrates
fover[a, b]with a fixed n-point Gauss-Legendre rule. - Quadrature
Rule - Nodes and weights of a quadrature rule.
Functions§
- gauss_
hermite - The n-point Gauss-Hermite rule for
∫_{−∞}^{∞} e^{−x²} f(x) dx(physicists’ weight), nodes ascending. For the probabilists’ weighte^{−x²/2}scale nodes by √2 and weights by √2. - gauss_
laguerre - The n-point generalized Gauss-Laguerre rule for
∫_0^∞ x^α e^{−x} f(x) dx(α > −1), nodes ascending. - gauss_
legendre - The n-point Gauss-Legendre rule for
∫_{−1}^{1} f(x) dx, nodes ascending.