Repository navigation
Highlights
Gauss-Hermite and Gauss-Laguerre are now accurate to machine precision and 3–20× faster. Their nodes and weights are computed by Newton's method directly on the polynomial recurrence, replacing the old eigenvalue bisection.
| rule | n | v0.4.0 | v0.4.1 |
|---|---|---|---|
| Hermite | 10 | 4.99 µs | 0.83 µs |
| Hermite | 100 | 1.06 ms | 49 µs |
| Laguerre | 10 | 5.84 µs | 1.74 µs |
| Laguerre | 100 | 1.13 ms | 90 µs |
Error of ∫ x² e^{-x²} dx: ~1e-7 before, ~1e-15 now.
Changed
- Gauss-Hermite and Gauss-Laguerre nodes and weights now come from deflated Newton on the polynomial recurrence, with Sturm-count checks, instead of eigenvalue bi machine precision (previously ~1e-7) and
3–20× faster. gauss_hermite_ruleandgauss_hermite_ruF: ToBigInt.
Fixed
gauss_hermite_ruleno longer panics for uting n!). Both the Hermite and Laguerre rules now work for anyn.