Schmelzer, Thomas; Trefethen, Lloyd N. Computing the gamma function using contour integrals and rational approximations. (English) Zbl 1153.65026 SIAM J. Numer. Anal. 45, No. 2, 558-571 (2007). In general, the best methods for computing the gamma function are based on the evolution of Hankel’s contour integrals. In this paper, two types of generic related methods are investigated to evaluate the gamma functions with geometric accuracy. Firstly, the application of the trapezoid rule on Talbot-type contours using optimal parameters derived by J.A.C. Weideman [SIAM J. Numer. Anal. 44, No. 6, 2342-2362 (2006; Zbl 1131.65105)] for computing inverse Laplace transforms. Following W. J. Cody, G. Meinardus and R. S. Varga [J. Approximation Theory 2, 50–65 (1969; Zbl 0187.11602)], the authors also investigate quadrature formulas derived from best approximation to \(\exp(z)\) on the negative real axis. The two methods are closely related, and both converge geometrically. These are competitive with existing ones, even though they are based on generic tools rather than on specific analysis of the gamma function. It is interesting that the second method is about twice as fast as the first, however, the first is simpler to implement as the construction of the best rational approximation is not trivial. Reviewer: C. L. Parihar (Indore) Cited in 15 Documents MSC: 65D20 Computation of special functions and constants, construction of tables 33F05 Numerical approximation and evaluation of special functions 33B15 Gamma, beta and polygamma functions Keywords:gamma function; Hankel contour; inverse Laplace transform; numerical quadrature; Talbot-type contour Citations:Zbl 0187.11602; Zbl 1131.65105 PDFBibTeX XMLCite \textit{T. Schmelzer} and \textit{L. N. Trefethen}, SIAM J. Numer. Anal. 45, No. 2, 558--571 (2007; Zbl 1153.65026) Full Text: DOI Link Digital Library of Mathematical Functions: §5.21 Methods of Computation ‣ Computation ‣ Chapter 5 Gamma Function §5.23(iii) Approximations in the Complex Plane ‣ §5.23 Approximations ‣ Computation ‣ Chapter 5 Gamma Function