| Literature DB >> 33435352 |
Cezary J Walczyk1, Leonid V Moroz2, Jan L Cieśliński1.
Abstract
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.Entities:
Keywords: Newton–Raphson method; approximation of functions; floating-point arithmetic; inverse square root; magic constant
Year: 2021 PMID: 33435352 PMCID: PMC7827340 DOI: 10.3390/e23010086
Source DB: PubMed Journal: Entropy (Basel) ISSN: 1099-4300 Impact factor: 2.524