xzackli / OscillatoryIntegralsODE.jl

MIT License
4 stars 1 forks source link

OscillatoryIntegralsODE

Dev Build Status codecov

This package computes highly oscillatory integrals by combining a Levin method (Levin 1994) with an ODE solver. It currently supports Bessel, spherical Bessel, and harmonic integrals.

Please read the documentation for details.

using OscillatoryIntegralsODE
f(x) = exp(-x^2/16)
bi = BesselJIntegral{Float64}(100., 100.)  # nu, r
levintegrate(bi, f, 1.0, 5.0; abstol=1e-6, reltol=1e-6)
0.006311599451652101