Cargando…
Improving the Accuracy of the Fast Inverse Square Root by Modifying Newton–Raphson Corrections
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-...
Autores principales: | , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
MDPI
2021
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7827340/ https://www.ncbi.nlm.nih.gov/pubmed/33435352 http://dx.doi.org/10.3390/e23010086 |
_version_ | 1783640738629681152 |
---|---|
author | Walczyk, Cezary J. Moroz, Leonid V. Cieśliński, Jan L. |
author_facet | Walczyk, Cezary J. Moroz, Leonid V. Cieśliński, Jan L. |
author_sort | Walczyk, Cezary J. |
collection | PubMed |
description | 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. |
format | Online Article Text |
id | pubmed-7827340 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2021 |
publisher | MDPI |
record_format | MEDLINE/PubMed |
spelling | pubmed-78273402021-02-24 Improving the Accuracy of the Fast Inverse Square Root by Modifying Newton–Raphson Corrections Walczyk, Cezary J. Moroz, Leonid V. Cieśliński, Jan L. Entropy (Basel) Article 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. MDPI 2021-01-09 /pmc/articles/PMC7827340/ /pubmed/33435352 http://dx.doi.org/10.3390/e23010086 Text en © 2021 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/). |
spellingShingle | Article Walczyk, Cezary J. Moroz, Leonid V. Cieśliński, Jan L. Improving the Accuracy of the Fast Inverse Square Root by Modifying Newton–Raphson Corrections |
title | Improving the Accuracy of the Fast Inverse Square Root by Modifying Newton–Raphson Corrections |
title_full | Improving the Accuracy of the Fast Inverse Square Root by Modifying Newton–Raphson Corrections |
title_fullStr | Improving the Accuracy of the Fast Inverse Square Root by Modifying Newton–Raphson Corrections |
title_full_unstemmed | Improving the Accuracy of the Fast Inverse Square Root by Modifying Newton–Raphson Corrections |
title_short | Improving the Accuracy of the Fast Inverse Square Root by Modifying Newton–Raphson Corrections |
title_sort | improving the accuracy of the fast inverse square root by modifying newton–raphson corrections |
topic | Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7827340/ https://www.ncbi.nlm.nih.gov/pubmed/33435352 http://dx.doi.org/10.3390/e23010086 |
work_keys_str_mv | AT walczykcezaryj improvingtheaccuracyofthefastinversesquarerootbymodifyingnewtonraphsoncorrections AT morozleonidv improvingtheaccuracyofthefastinversesquarerootbymodifyingnewtonraphsoncorrections AT cieslinskijanl improvingtheaccuracyofthefastinversesquarerootbymodifyingnewtonraphsoncorrections |