skip to main content
research-article

On the Error of Computing ab+cd using Cornea, Harrison and Tang's Method

Published:04 February 2015Publication History
Skip Abstract Section

Abstract

In their book, Scientific Computing on the Itanium, Cornea et al. [2002] introduce an accurate algorithm for evaluating expressions of the form ab+cd in binary floating-point arithmetic, assuming an FMA instruction is available. They show that if p is the precision of the floating-point format and if u = 2-p, the relative error of the result is of order u. We improve their proof to show that the relative error is bounded by 2u+7u2+6u3. Furthermore, by building an example for which the relative error is asymptotically (as p → ∞ or, equivalently, as u → 0) equivalent to 2u, we show that our error bound is asymptotically optimal.

References

  1. M. Cornea, J. Harrison, and P. T. P. Tang. 2002. Scientific Computing on Itanium®-Based Systems. Intel Press, Hillsboro, OR. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. N. J. Higham. 1996. Accuracy and Stability of Numerical Algorithms. SIAM, Philadelphia, PA. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. IEEE Computer Society. 2008. IEEE standard for floating-point arithmetic. IEEE Standard 754-2008. http://ieeexplore.ieee.org/servlet/opac?punumber=4610933.Google ScholarGoogle Scholar
  4. C.-P. Jeannerod, N. Louvet, and J.-M. Muller. 2013. Further analysis of Kahan's algorithm for the accurate computation of 2×2 determinants. Math. Comp. 82 (2013).Google ScholarGoogle Scholar
  5. W. Kahan. 1996. Lecture notes on the status of IEEE-754. (1996). http://www.cs.berkeley.edu/~wkahan/ieee754status/IEEE754.PDF.Google ScholarGoogle Scholar
  6. J.-M. Muller, N. Brisebarre, F. de Dinechin, C.-P. Jeannerod, V. Lefèvre, G. Melquiond, N. Revol, D. Stehlé, and S. Torres. 2010. Handbook of Floating-Point Arithmetic. Birkhäuser Boston. 572 pages. ISBN 978-0-8176-4704-9. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. P. H. Sterbenz. 1974. Floating-Point Computation. Prentice-Hall, Englewood Cliffs, NJ.Google ScholarGoogle Scholar

Index Terms

  1. On the Error of Computing ab+cd using Cornea, Harrison and Tang's Method

      Recommendations

      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

      • Published in

        cover image ACM Transactions on Mathematical Software
        ACM Transactions on Mathematical Software  Volume 41, Issue 2
        January 2015
        173 pages
        ISSN:0098-3500
        EISSN:1557-7295
        DOI:10.1145/2732672
        Issue’s Table of Contents

        Copyright © 2015 ACM

        Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

        Publisher

        Association for Computing Machinery

        New York, NY, United States

        Publication History

        • Published: 4 February 2015
        • Revised: 1 February 2014
        • Accepted: 1 February 2014
        • Received: 1 September 2013
        Published in toms Volume 41, Issue 2

        Permissions

        Request permissions about this article.

        Request Permissions

        Check for updates

        Qualifiers

        • research-article
        • Research
        • Refereed

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader