Computing the Gamma Function Using Contour Integrals and Rational Approximations
Some of the best methods for computing the gamma function are based on numerical evaluation of Hankel's contour integral. For example, Temme evaluates this integral based on steepest descent contours by the trapezoid rule. Here we investigate a different approach to the integral: the applicatio...
Saved in:
Published in: | SIAM journal on numerical analysis Vol. 45; no. 2; pp. 558 - 571 |
---|---|
Main Authors: | , |
Format: | Journal Article |
Language: | English |
Published: |
Philadelphia
Society for Industrial and Applied Mathematics
01-01-2007
|
Subjects: | |
Online Access: | Get full text |
Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
Summary: | Some of the best methods for computing the gamma function are based on numerical evaluation of Hankel's contour integral. For example, Temme evaluates this integral based on steepest descent contours by the trapezoid rule. Here we investigate a different approach to the integral: the application of the trapezoid rule on Talbot-type contours using optimal parameters recently derived by Weideman for computing inverse Laplace transforms. Relatedly, we also investigate quadrature formulas derived from best approximations to exp(z) on the negative real axis, following Cody, Meinardus, and Varga. The two methods are closely related, and both converge geometrically. We find that the new methods are competitive with existing ones, even though they are based on generic tools rather than on specific analysis of the gamma function. |
---|---|
ISSN: | 0036-1429 1095-7170 |
DOI: | 10.1137/050646342 |