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

作者:

Highlights:

摘要

We present a mathematical analysis of transformations used in fast calculation of inverse square root for single-precision floating-point numbers. Optimal values of the so called magic constants are derived in a systematic way, minimizing either relative or absolute errors. We show that the value of the magic constant can depend on the number of Newton–Raphson iterations. We present results for one and two iterations.

论文关键词:Floating-point arithmetic,Inverse square root,Magic constant,Newton–Raphson method

论文评审过程:Received 27 May 2016, Revised 9 June 2017, Accepted 11 August 2017, Available online 4 September 2017, Version of Record 4 September 2017.

论文官网地址:https://doi.org/10.1016/j.amc.2017.08.025