Skip to main content

Module tanh_sinh

Module tanh_sinh 

Source
Expand description

Tanh-sinh (double exponential) quadrature.

Structs§

TanhSinhEngine
Integrates over a finite interval with the substitution x = tanh(π/2 · sinh t) (Takahasi and Mori), which makes the transformed integrand decay double exponentially and lets the trapezoid rule in t converge exponentially fast, even for integrable endpoint singularities such as 1/√x or ln x. The step is halved each level (reusing earlier points) until two successive estimates agree to the tolerance.