Skip to content

Fast and accurate numerical evaluation of Meijer G-functions at near and exact confluence via log-ratio jets

Timon S. Gutleb

math.NA

Abstract

Slater residue expansions provide a fast route to numerical Meijer GG-function evaluation, but become singular or severely ill-conditioned when active pole families coincide or nearly coincide, even though the underlying function remains finite. We introduce coefficient-level log-ratio jets, which pair the nearly cancelling residue terms and evaluate their combined contribution without the 1/∣ε∣1/|\varepsilon| cancellation amplification of the separated expansion. The resulting method has a continuous exact-confluence limit matching the corresponding Laurent residue and extends to isolated pole clusters of arbitrary multiplicity. We prove first-order convergence to the confluent limit and preservation of the Slater tail rate, and show that, under a standard accuracy model for the underlying primitives, the pole-spacing-dependent error amplification is removed in the supported unbalanced lower and upper regimes. Away from the convergent regime of a residue series, cancellation between the summed terms causes a second loss of accuracy that can persist at exact confluence. We certify it a posteriori through a series-level condition number and, where it is large, re-evaluate the residue series in double-double arithmetic, which restores near-machine precision at a small multiple of the Float64 cost and without arbitrary-precision arithmetic. Float64 experiments across both expansions, integer pole shifts, and multiplicities r=2,3,4r=2,3,4 attain near-machine precision where raw Slater loses accuracy or becomes nonfinite. For pairs, the wall times are comparable to the ordinary Slater fast path and far below arbitrary-precision evaluation. The method is implemented in the open-source Julia package MeijerG.jl.

Create a lesson

Metadata

Categories
math.NA, cs.MS, cs.NA
Comments
54 pages, 15 figures. Code: MeijerG.jl v0.2.2, https://github.com/TSGut/MeijerG.jl (doi:10.5281/zenodo.24590102)