skip to main content
article
Free Access

High-precision division and square root

Published:01 December 1997Publication History
Skip Abstract Section

Abstract

We present division and square root algorithm for calculations with more bits than are handled by the floating-point hardware. These algorithms avoid the need to multiply two high-precision numbers, speeding up the last iteration by as much as a factor of 10. We also show how to produce the floating-point number closest to the exact result with relatively few additional operations.

References

  1. AGARWAL, R. C., COOLEY, J. W., GUSTAVSON, F. G., SHEARER, J. B., SLISHMAN, G., AND TUCKERMAN, B. 1986. New scalar and vector elementary functions for the IBM System/370. IBM J. Res. Dev. 30, 2 (Mar.), 126-144. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. ANSI. 1985. ANSI/IEEE standard for binary floating point arithmetic. Tech. Rep. ANSI/ IEEE Standard 754-1985. IEEE Press, Piscataway, NJ.Google ScholarGoogle Scholar
  3. BAILEY, D.H. 1992. A portable high performance multiprecision package. RNR Tech. Rep. RNR-90-022. NASA Ames Research Center, Moffett Field, CA.Google ScholarGoogle Scholar
  4. GOLDBERG, D. 1990. Appendix A. In Computer Architecture'A Qualitative Approach. Morgan Kaufmann Publishers Inc., San Francisco, CA.Google ScholarGoogle Scholar
  5. HEWLETT-PACKARD. 1991. HP-UX Reference. 1st ed. Hewlett-Packard, Fort Collins, CO.Google ScholarGoogle Scholar
  6. HILDEBRAND, F.B. 1965. Introduction to Numerical Analysis. 2nd ed. Prentice Hall Press, Upper Saddle River, NJ. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. KAHAN, W. 1987. Checking whether floating-point division is correctly rounded. Monograph. Computer Science Dept., University of California at Berkeley, Berkeley, CA.Google ScholarGoogle Scholar
  8. MARKSTEIN, P. W. 1990. Computation of elementary functions on the IBM RISC System/6000 processor. IBM J. Res. Dev. 34, 1 (Jan.), 111-119. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. MONUSCHI, P. AND MEZZALAMA, M. 1990. Survey of square rooting algorithms. IEE Proc. 137, 1, Part E (Jan.), 31-40.Google ScholarGoogle Scholar
  10. OLSSON, B., MONTOYE, R., MARKSTEIN, P., AND NGYUENPHU, M. 1990. RISC System~6000 Floating-Point Unit. IBM Corp., Riverton, NJ.Google ScholarGoogle Scholar
  11. PATTERSON, D. A. AND HENNESSY, J. L. 1990. Computer Architecture: A Qualitative Approach. Morgan Kaufmann Publishers Inc., San Francisco, CA. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. High-precision division and square root

        Recommendations

        Reviews

        James Martin Varah

        The authors examine the usual (Newton-Raphson) algorithms for division and for extraction of square roots. These operations are significantly more time-consuming than addition and multiplication, particularly when high precision is desired. The authors show that the costly last step can be speeded up by adjusting the iteration slightly, and this can lead to a significant reduction in the overall execution time of the algorithm. They carefully analyze the accuracy of their algorithm and give the results of extensive testing.

        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

        • Published in

          cover image ACM Transactions on Mathematical Software
          ACM Transactions on Mathematical Software  Volume 23, Issue 4
          Dec. 1997
          137 pages
          ISSN:0098-3500
          EISSN:1557-7295
          DOI:10.1145/279232
          • Editor:
          • Ronald Boisuert
          Issue’s Table of Contents

          Copyright © 1997 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: 1 December 1997
          Published in toms Volume 23, Issue 4

          Permissions

          Request permissions about this article.

          Request Permissions

          Check for updates

          Qualifiers

          • article

        PDF Format

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader