Arithmetic Algorithms for Extended Precision Using Floating-Point Expansions
Authors:
- 4 June 2015
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Computers
- Vol. 65 (4) , 1197-1210
Abstract
Many numerical problems require a higher computing precision than the one offered by standard floating-point (FP) formats. One common way of extending the precision is to represent numbers in a multiple component format. By using the so-called floating-point expansions , real numbers are represented as the unevaluated sum of standard machine precision FP numbers. This representation offers the simplicity of using directly available, hardware implemented and highly optimized, FP operations. It is used by multiple-precision libraries such as Bailey's QD or the analogue Graphics Processing Units (GPU) tuned version, GQD. In this article we briefly revisit algorithms for adding and multiplying FP expansions, then we introduce and prove new algorithms for normalizing, dividing and square rooting of FP expansions. The new method used for computing the reciprocal ${a}^{-1}$ and the square root $\sqrt{a}$ of a FP expansion $a$ is based on an adapted Newton-Raphson iteration where the intermediate calculations are done using “truncated” operations (additions, multiplications) involving FP expansions. We give here a thorough error analysis showing that it allows very accurate computations. More precisely, after $q$ iterations, the computed FP expansion $x=x_0+\ldots +x_{2^q-1}$ satisfies, for the reciprocal algorithm, the relative error bound: $\left|({x-a^{-1}})/{a^{-1}}\right| \le 2^{-2^q(p-3)-1}$ and, respectively, for the square root one: $\left|x-{1}/{\sqrt{a}}\right| \le {2^{-2^q(p-3)-1}}/{\sqrt{a}}$ , where $p> 2$ is the precision of the FP representation used ( $p=24$ for single precision and $p=53$ for double precision).
Keywords
Funding Information
- ANR
This publication has 13 references indexed in Scilit:
- Searching for Sinks for the Hénon Map using a Multipleprecision GPU Arithmetic LibraryACM SIGARCH Computer Architecture News, 2014
- On the computation of the reciprocal of floating point expansions using an adapted Newton-Raphson iteration2014
- Improved Error Bounds for Inner Products in Floating-Point ArithmeticSIAM Journal on Matrix Analysis and Applications, 2013
- Computing periodic orbits with arbitrary precisionPhysical Review E, 2011
- Existence of collisional trajectories of Mercury, Mars and Venus with the EarthNature, 2009
- Accurate Floating-Point Summation Part I: Faithful RoundingSIAM Journal on Scientific Computing, 2008
- Accurate Sum and Dot ProductSIAM Journal on Scientific Computing, 2005
- Algorithms for quad-double precision floating point arithmetic2002
- Adaptive Precision Floating-Point Arithmetic and Fast Robust Geometric PredicatesDiscrete & Computational Geometry, 1997
- Historical Development of the Newton–Raphson MethodSIAM Review, 1995