Abstract
Rational approximations to the sine integralSi(x) and cosine-integralCi(x) are developed which give an accuracy of 20sf. The robust construction of software for these functions is discussed, together with a test procedure for assessing the performance of such codes. Use of the tests discovers a major error in the netlib library FN codes forSi. Fortran versions of the codes and tests are available by electronic mail.
Similar content being viewed by others
References
M. Abramowitz and I.A. Stegun (eds.),Handbook of Mathematical Functions, Dover, New York, 1965.
C.W. Clenshaw, The numerical solution of linear differential equations in Chebyshev series, Proc. Camb. Phil. Soc. 53 (1957) 134–149.
W.J. Cody, Algorithm 665: MACHAR: A subroutine to dynamically determine machine parameters, ACM Trans. Math. Soft., 14 (1988) 303–311.
W.J. Cody, Algorithm 715: SPECFUN — A portable FORTRAN package of special function routines and test drivers, ACM Trans. Math. Softw. 19 (1993) 22–32.
W.J. Cody, W. Fraser and J.F. Hart, Rational Chebyshev approximation using linear equations, Numer. Math. 12 (1968) 242–251.
W.J. Cody and L. Stoltz, The use of Taylor series to test accuracy of function programs, ACM Trans. Math. Soft. 17 (1991) 55–63.
J.J. Dongarra and E. Grosse, Distribution of mathematical software via electronic mail, Comm. ACM 30 (1987) 403–407.
W. Gautschi, Algorithm 282 — derivatives ofe x/x, cosx/x, and sinx/x, Comm. ACM 9 (1966) 272.
W. Gautschi, Computation of successive derivatives off(z)/z, Math. Comp. 20 (1966) 209–214.
W. Gautschi and B.J. Klein, Recursive computation of certain derivatives — a study of error propogation, Comm. ACM 13 (1970) 7–9.
W. Gautschi and B.J. Klein, Remark on Algorithm 282 — Derivatives ofe x/x, cosx/x, and sinx/x, Comm. ACM 13 (1970) 53–54.
J.F. Hart, E.W. Cheney, C.L. Lawson, H.J. Maehhly, C.K. Mesztenyi, J.R. Rice, H.G. Thacher and C. Witzgall,Computer Approximations, Wiley, New York, 1968.
Author information
Authors and Affiliations
Additional information
Communicated by C. Brezinski and H. Redivo-Zaglia
Rights and permissions
About this article
Cite this article
MacLeod, A.J. Rational approximations, software and test methods for sine and cosine integrals. Numer Algor 12, 259–272 (1996). https://doi.org/10.1007/BF02142806
Received:
Revised:
Issue Date:
DOI: https://doi.org/10.1007/BF02142806