{'fraction_non_alphanumeric': 0.01376597836774828, 'fraction_numerical': 0.007866273352999017, 'mean_word_length': 5.484076433121019, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Error bounds and exponential improvements for the asymptotic expansions of the gamma function and its reciprocal

In 1994 Boyd derived a resurgence representation for the gamma function, exploiting the 1991 reformulation of the method of steepest descents by Berry and Howls. Using this representation, he was able to derive a number of properties of the asymptotic expansion for the gamma function, including explicit and realistic error bounds, the smooth transition of the Stokes discontinuities and asymptotics for the late coefficients. The main aim of this paper is to modify Boyd’s resurgence formula, making it suitable for deriving better error estimates for the asymptotic expansions of the gamma function and its reciprocal. We also prove the exponentially improved versions of these expansions complete with error terms. Finally, we provide new (formal) asymptotic expansions for the coefficients appearing in the asymptotic series and compare their numerical efficacy with the results of earlier authors.