skip to main content
article
Free Access

The use of Taylor series to test accuracy of function programs

Published:01 March 1991Publication History
Skip Abstract Section

Abstract

This paper discusses the use of local Taylor series expansions for determining the accuracy of computer programs for special functions. The main example is testing of programs for exponential integrals. Additional applicaitons include testing of programs for certain Bessel functions, Dawson's integral, and error functions.

References

  1. 1 ABRAMOWITZ, M., AND STEGUN, I.A. Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables. National Bureau of Standards Applied Mathematics Series Vol. 55, U. S. Government Printing Office, Washington, D.C., 1964. Google ScholarGoogle Scholar
  2. 2 CODY, W.J. SPECFUN--A portable special function package. In New Computing Environments: M~crocomputers in Large-Scale Scientific Computing. A. Wouk, ed., SIAM, Philadelphia, 1987, 1-12.Google ScholarGoogle Scholar
  3. 3 CODY, W. J. MACHAR: A subroutine to dynamically determine machine parameters. ACM Trans. Math. Sofiw. 14 (1988), 303-311. Google ScholarGoogle Scholar
  4. 4 ConY, W. J. Performance evaluation of programs related to the real gamma function. Preprint MCS-P12-0988, Mathematics and Computer Science Division, Argonne National Laboratory, Argonne, Illinois, 1988.Google ScholarGoogle Scholar
  5. 5 CODY, W.J. Performance evaluation of programs for the error and complementary error functions. Preprint MCS-P13-0988, Mathematics and Computer Science Division, Argonne National Laboratory, Argonne, Illinois, 1988.Google ScholarGoogle Scholar
  6. 6 CODY, W. J., AND STOLTZ, L. Performance evaluation of programs for certain Bessel functions. ACM Trans. Math. Softw. 15 (1989), 41-45. Google ScholarGoogle Scholar
  7. 7 COPY, W. J., AND THACHER, H. C., JR. Chebyshev approximations for the exponential integral Ei( x). Math. Comput. 23 (1969), 289-303.Google ScholarGoogle Scholar
  8. 8 DONGARRA, J. J., AND GROSSE, E. Distribution of mathematical software via electronic mail. Commun. ACM 30, 5 (1987), 403-407. Google ScholarGoogle Scholar
  9. 9 GAUTSCHI, W., AND KLEIN, B.J. Recursive computation of certain derivatives--A study of error propagation. Commun. ACM 13, i (1970), 7-9. Google ScholarGoogle Scholar
  10. 10 GAUTSCHI, W., AND KLEIN, B.J. Remark on Algorithm 282, derivatives of eX/x, cos (x)/x, and sin (x)/x. Commun. ACM 13, i (1970), 53-54. Google ScholarGoogle Scholar
  11. 11 NAg FORTRAN Library Manual, Mark 11, Volume 6. Numerical Algorithms Group, Ltd., Oxford, 1984.Google ScholarGoogle Scholar
  12. 12 SFUN/LIBRARY User's Manual. IMSL, Inc., Houston, Tex., 1987.Google ScholarGoogle Scholar

Index Terms

  1. The use of Taylor series to test accuracy of function programs

        Recommendations

        Reviews

        Ian Gladwell

        Local Taylor series expansions are recommended for determining the accuracy of special function routines. The authors emphasize using exact machine numbers as arguments in the Taylor series, special action to deal with large relative errors near zeros of the special function, and calibration using correctly rounded results of higher-precision calculations. The main example considered is the exponential integral, for which tests of several existing subroutines are described. The success of these tests depends on obtaining accurate values for the leading terms in the Taylor expansion. This approach is implemented in the package SPECFUN, which also tests the accuracy of Dawson's integral and of various Bessel functions.

        Access critical reviews of Computing literature here

        Become a reviewer for Computing Reviews.

        Comments

        Login options

        Check if you have access through your login credentials or your institution to get full access on this article.

        Sign in

        Full Access

        PDF Format

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader