Skip to main content
Log in

Accurate evaluation of Chebyshev polynomials in floating-point arithmetic

  • Published:
BIT Numerical Mathematics Aims and scope Submit manuscript

Abstract

It is well-known that the Chebyshev polynomials \(T_n\) and \(U_{n-1}\) can be recursively expressed as linear combinations of \(T_{n-1}\) and \(U_{n-2}\). We study floating-point implementations of these recurrences for arguments in the interval \([-\,1,1]\). We demonstrate that the maximum error of the resulting approximation to \(T_n\) is \(\mathcal{O}(un)\), where u is the unit roundoff. In contrast, a commonly used three-term recurrence for \(T_n\) has the maximum error within a constant factor from \(un^2\).

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1

Similar content being viewed by others

References

  1. Al-Salam, W.A., Chihara, T.S.: Another characterization of the classical orthogonal polynomials. SIAM J. Math. Anal. 3, 65–70 (1972)

    Article  MathSciNet  MATH  Google Scholar 

  2. Dehesa, J.S., Yañez, R.J., Zarso, A., Aguilar, J.A.: New linear relationships of hypergeometric-type functions with applications to orthogonal polynomials. Rend. Mat. Appl. VII Ser. 13, 661–671 (1993)

    MathSciNet  MATH  Google Scholar 

  3. Demmel, J.: Underflow and the reliability of numerical software. SIAM J. Sci. Stat. Comput. 5, 887–919 (1984)

    Article  MathSciNet  MATH  Google Scholar 

  4. Hauser, J.R.: Handling floating-point exceptions in numeric programs. ACM Trans. Program. Lang. Syst. (TOPLAS) 18(2), 139–174 (1996)

    Article  Google Scholar 

  5. Higham, N.J.: Accuracy and Stability of Numerical Algorithms, 2nd edn. SIAM, Philadelphia (2002)

    Book  MATH  Google Scholar 

  6. Hrycak, T., Schmutzhard, S.: Evaluation of Chebyshev polynomials by a three-term recurrence in floating-point arithmetic. BIT Numer. Math. 58, 317–330 (2008)

    Article  MathSciNet  MATH  Google Scholar 

  7. Olver, F.W., Lozier, D.W., Boisvert, R.F., Clark, C.W.: NIST Handbook of Mathematical Functions. Cambridge University Press, Cambridge (2010)

    MATH  Google Scholar 

Download references

Acknowledgements

We are grateful for the reviewer’s detailed comments and his helpful suggestions.

The authors are supported by the Innovationsfonds “Forschung, Wissenschaft und Gesellschaft” of the Austrian Academy of Sciences on the project “Railway vibrations from tunnels”.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Tomasz Hrycak.

Additional information

Communicated by Lars Eldén.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Hrycak, T., Schmutzhard, S. Accurate evaluation of Chebyshev polynomials in floating-point arithmetic. Bit Numer Math 59, 403–416 (2019). https://doi.org/10.1007/s10543-018-0738-5

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10543-018-0738-5

Keywords

Mathematics Subject Classification

Navigation