Procedures are described for the high-precision calculation of the modiied Bessel function K(x), 0 < < 1, and the Airy function Ai(x), for positive arguments x, as prerequisites for generating Gaussian quadrature rules having these functions as weight function.