Add specialty integration methods (Phase 4)#6
Merged
gvonness-apolitical merged 1 commit intomainfrom Feb 26, 2026
Merged
Conversation
…hase 4) Four new integration modules for handling difficult integrands: - tanh_sinh: Double-exponential quadrature for endpoint singularities (algebraic, logarithmic). Self-adaptive via level doubling. - cauchy_pv: Cauchy principal value integration via subtraction technique, using adaptive integration with automatic breakpoints. - oscillatory: Filon-Clenshaw-Curtis method for highly oscillatory integrands with sin/cos kernels. Chebyshev expansion with GL-computed modified moments. - weighted: Unified API for product integration dispatching to the appropriate Gaussian rule (Jacobi, Laguerre, Hermite, Chebyshev, LogWeight via Laguerre substitution).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PV ∫f(x)/(x-c)dx = ∫[f(x)-f(c)]/(x-c)dx + f(c)·ln(...), using adaptive integration with automatic breakpoints at the pole.∫f(x)sin(ωx)dxand∫f(x)cos(ωx)dx. Chebyshev expansion of f at Clenshaw-Curtis nodes, modified Chebyshev moments computed via Gauss-Legendre quadrature. Falls back to adaptive integration for small ω.∫f(x)·w(x)dxdispatching to appropriate Gaussian rules (Jacobi, Laguerre, Hermite, Chebyshev). LogWeightw(x)=-ln(x)handled via Laguerre α=1 substitution.All modules follow the established builder pattern with convenience free functions.
Test plan
cargo clippyclean (no new warnings)cargo fmtapplied