Fast and accurate approximation algorithms for computing floating point square root

Abstract The square root is one of the most used functions in many different engineering and scientific applications. We propose new methods for calculating the square root function that are based on the Newton–Raphson method with Heron iteration. A modification of Heron’s formula combined with an improved selection of the magic constants enables a significant reduction of the maximum relative error (MRE). Simple modifications to the Newton–Raphson formula and the magic number method enable implementation on platforms with limited hardware resources, such as microcontrollers and FPGAs, with variable accuracy. Implementations of new approximation algorithms in the C programming language were carefully tested and evaluated against their software and hardware counterparts on the most popular platforms, e.g., CPUs from Intel, AMD and ARM, GPU from Nvidia and IPU from Graphcore. The proposed numerical algorithms are shown to be superior in terms of computational time, the number of clock cycles, accuracy, MRE, and root mean square deviation.

Authors

Institutions

Publication Details

Journal
Numerical Algorithms
Published
2024-10-02
DOI
https://doi.org/10.1007/s11075-024-01932-7
Citations
2
Primary Topic
Numerical Methods and Algorithms
Type
article
Field-Weighted Citation Impact
0.72

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Fast and accurate approximation algorithms for computing floating point square root

Mariusz Węgrzyn, Volodymyr Samotyy, Zbigniew Kokosiński, Наталія Гавкалова et al.
2 citations
Numerical Algorithms
Numerical Methods and Algorithms
0.72
article

Fast and accurate approximation algorithms for computing floating point square root

Mariusz Węgrzyn, Volodymyr Samotyy, Zbigniew Kokosiński, Наталія Гавкалова, Leonid Moroz, Paweł Gepner
article en
2 citations

Abstract

Abstract The square root is one of the most used functions in many different engineering and scientific applications. We propose new methods for calculating the square root function that are based on the Newton–Raphson method with Heron iteration. A modification of Heron’s formula combined with an improved selection of the magic constants enables a significant reduction of the maximum relative error (MRE). Simple modifications to the Newton–Raphson formula and the magic number method enable implementation on platforms with limited hardware resources, such as microcontrollers and FPGAs, with variable accuracy. Implementations of new approximation algorithms in the C programming language were carefully tested and evaluated against their software and hardware counterparts on the most popular platforms, e.g., CPUs from Intel, AMD and ARM, GPU from Nvidia and IPU from Graphcore. The proposed numerical algorithms are shown to be superior in terms of computational time, the number of clock cycles, accuracy, MRE, and root mean square deviation.

Numerical AlgorithmsVol. 99(4)
Warsaw University of Technology (PL), Cracow University of Technology (PL)
Infrastruktura PL-Grid, Academic Computer Centre Cyfronet, AGH University of Science and Technology
Openalex Percentile: Top 26%
Numerical Methods and Algorithms
0.72
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.