A Correctly Rounded Newton Step for the Reciprocal Square Root

12/28/2021
by   Carlos F. Borges, et al.
0

The reciprocal square root is an important computation for which many sophisticated algorithms exist (see for example <cit.> and the references therein). A common theme is the use of Newton's method to refine the estimates. In this paper we develop a correctly rounded Newton step that can be used to improve the accuracy of a naive calculation (using methods similar to those developed in <cit.>) . The approach relies on the use of the fused multiply-add (FMA) which is widely available in hardware on a variety of modern computer architectures. We then introduce the notion of weak rounding and prove that our proposed algorithm meets this standard. We then show how to leverage the exact Newton step to get a Halley's method compensation which requires one additional FMA and one additional multiplication. This method appears to give correctly rounded results experimentally and we show that it can be combined with a square root free method for estimating the reciprocal square root to get a method that is both very fast (in computing environments with a slow square root) and, experimentally, highly accurate.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
02/23/2021

Fast Compensated Algorithms for the Reciprocal Square Root, the Reciprocal Hypotenuse, and Givens Rotations

The reciprocal square root is an important computation for which many ve...
research
02/17/2018

Improving the accuracy of the fast inverse square root algorithm

We present improved algorithms for fast calculation of the inverse squar...
research
03/27/2019

A sparse semismooth Newton based proximal majorization-minimization algorithm for nonconvex square-root-loss regression problems

In this paper, we consider high-dimensional nonconvex square-root-loss r...
research
03/14/2016

Fast calculation of inverse square root with the use of magic constant - analytical approach

We present a mathematical analysis of transformations used in fast calcu...
research
01/03/2018

Towards platform-independent verification of the standard mathematical functions: the square root function

The paper presents (human-oriented) specification and (pen-and-paper) ve...
research
01/21/2022

Fast Differentiable Matrix Square Root

Computing the matrix square root or its inverse in a differentiable mann...
research
08/01/2017

Digit Serial Methods with Applications to Division and Square Root (with mechanically checked correctness proofs)

We present a generic digit serial method (DSM) to compute the digits of ...

Please sign up or login with your details

Forgot password? Click here to reset