The trapezoidal rule is applied to the numerical calculation of the integral representation of Tricomi’s psi function for , . The unexpectedly high accuracy is explained by means of a careful investigation in the complex field of the Euler-Maclaurin formula, and particularly of its remainder terms, considered as an extension of the trapezoidal rule. Since the same method has been used previously to evaluate the complementary incomplete gamma function [the authors, Numer. Math. 50, 419-428 (1987; Zbl 0593.65017)], the Euler gamma function and the digamma function, the present paper limits itself to quote the main features of the method and describes fully the peculiarities of this application.
A simple and efficient numerical procedure for obtaining values of the psi function is given; moreover, to reduce the amount of calculation, an iterative algorithm for the evaluation of the trapezoidal rule, similar to Horner’s scheme for polynomials, is suggested.