Improving the Accuracy of the Fast Inverse Square Root by Modifying Newton-Raphson Corrections

被引:8
|
作者
Walczyk, Cezary J. [1 ]
Moroz, Leonid V. [2 ]
Cieslinski, Jan L. [1 ]
机构
[1] Uniwersytet Bialymstoku, Wydzial Fizyki, Ul Ciolkowskiego 1L, PL-15245 Bialystok, Poland
[2] Lviv Polytech Natl Univ, Dept Secur Informat & Technol, St Kn Romana 1-3, UA-79000 Lvov, Ukraine
关键词
approximation of functions; floating-point arithmetic; Newton– Raphson method; inverse square root; magic constant;
D O I
10.3390/e23010086
中图分类号
O4 [物理学];
学科分类号
0702 ;
摘要
Direct computation of functions using low-complexity algorithms can be applied both for hardware constraints and in systems where storage capacity is a challenge for processing a large volume of data. We present improved algorithms for fast calculation of the inverse square root function for single-precision and double-precision floating-point numbers. Higher precision is also discussed. Our approach consists in minimizing maximal errors by finding optimal magic constants and modifying the Newton-Raphson coefficients. The obtained algorithms are much more accurate than the original fast inverse square root algorithm and have similar very low computational costs.
引用
收藏
页码:1 / 21
页数:20
相关论文
共 50 条
  • [31] A Fast FPGA Based Architecture for Computation of Square Root and Inverse Square Root
    Hasnat, Abul
    Bhattacharyya, Tanima
    Dey, Atanu
    Halder, Santanu
    Bhattacharjee, Debotosh
    PROCEEDINGS OF 2ND INTERNATIONAL CONFERENCE ON 2017 DEVICES FOR INTEGRATED CIRCUIT (DEVIC), 2017, : 383 - 387
  • [32] FINITE-ELEMENT ANALYSIS OF DYNAMICALLY LOADED FLEXIBLE JOURNAL BEARINGS - A FAST NEWTON-RAPHSON METHOD
    MCIVOR, JDC
    FENNER, DN
    JOURNAL OF TRIBOLOGY-TRANSACTIONS OF THE ASME, 1989, 111 (04): : 597 - 604
  • [33] A Modification of the Fast Inverse Square Root Algorithm
    Walczyk, Cezary J.
    Moroz, Leonid, V
    Cieslinski, Jan L.
    COMPUTATION, 2019, 7 (03)
  • [34] Fast enclosure for a matrix inverse square root
    Miyajima, Shinya
    LINEAR ALGEBRA AND ITS APPLICATIONS, 2015, 467 : 116 - 135
  • [35] Fast parallel Newton-Raphson power flow solver for large number of system calculations with CPU and GPU
    Wang, Zhenqi
    Wende-von Berg, Sebastian
    Braun, Martin
    SUSTAINABLE ENERGY GRIDS & NETWORKS, 2021, 27 (27):
  • [36] Divisions and Square Roots with Tight Error Analysis from Newton-Raphson Iteration in Secure Fixed-Point Arithmetic
    Korzilius, Stan
    Schoenmakers, Berry
    CRYPTOGRAPHY, 2023, 7 (03)
  • [37] Square Root and Inverse Square Root Computation Using a Fast FPGA Based Architecture
    Hasnat, Abul
    Dey, Atanu
    Halder, Santanu
    Bhattacharjee, Debotosh
    JOURNAL OF ACTIVE AND PASSIVE ELECTRONIC DEVICES, 2018, 13 (2-3): : 135 - 147
  • [38] Maximum likelihood estimation based on Newton-Raphson iteration for the bivariate random effects model in test accuracy meta-analysis
    Willis, Brian H.
    Baragilly, Mohammed
    Coomar, Dyuti
    STATISTICAL METHODS IN MEDICAL RESEARCH, 2020, 29 (04) : 1197 - 1211
  • [39] Modified Fast Inverse Square Root and Square Root Approximation Algorithms: The Method of Switching Magic Constants
    Moroz, Leonid V.
    Samotyy, Volodymyr V.
    Horyachyy, Oleh Y.
    COMPUTATION, 2021, 9 (02) : 1 - 23
  • [40] Fast nonlinear finite element analysis using Newton-Raphson method implemented by Krylov subspace method with relaxed convergence criterion
    Okamoto, Yoshifumi
    Kameari, Akihisa
    Fujiwara, Koji
    Tsuburaya, Tomonori
    Sato, Shuji
    COMPEL-THE INTERNATIONAL JOURNAL FOR COMPUTATION AND MATHEMATICS IN ELECTRICAL AND ELECTRONIC ENGINEERING, 2015, 34 (05) : 1537 - 1552