Cargando…
Novel seed generation and quadrature-based square rooting algorithms
The square root operation is indispensable in a myriad of computational science and engineering applications. Various computational techniques have been devised to approximate its value. In particular, convergence methods employed in this regard are highly affected by the initial approximation of th...
Autores principales: | , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
Nature Publishing Group UK
2022
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9708849/ https://www.ncbi.nlm.nih.gov/pubmed/36446880 http://dx.doi.org/10.1038/s41598-022-25039-y |
_version_ | 1784841029389647872 |
---|---|
author | Altamimi, Amal Ben Youssef, Belgacem |
author_facet | Altamimi, Amal Ben Youssef, Belgacem |
author_sort | Altamimi, Amal |
collection | PubMed |
description | The square root operation is indispensable in a myriad of computational science and engineering applications. Various computational techniques have been devised to approximate its value. In particular, convergence methods employed in this regard are highly affected by the initial approximation of the seed value. Research shows that the provision of an initial approximation with higher accuracy yields fewer additional iterations to calculate the square root. In this article, we propose two novel algorithms. The first one presents a seed generation technique that depends on bit manipulation and whose output is to be used as an initial value in the calculation of square roots. The second one describes a quadrature-based square rooting method that utilizes a rectangle as the plane figure for squaring. We provide error estimation of the former using the vertical parabola equation and employ a suitable lookup table, for the latter, to store needed cosine values. The seed generation approach produces a significant reduction in the number of iterations of up to 84.42% for selected convergence methods. The main advantages of our proposed square rooting algorithm lie in its high accuracy and in its requirement of just a single iteration. Our proposed algorithm also provides for lower computational latency, measured in the number of clock cycles, compared to Newton–Raphson’s and Bakhshali’s square rooting methods. |
format | Online Article Text |
id | pubmed-9708849 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2022 |
publisher | Nature Publishing Group UK |
record_format | MEDLINE/PubMed |
spelling | pubmed-97088492022-12-01 Novel seed generation and quadrature-based square rooting algorithms Altamimi, Amal Ben Youssef, Belgacem Sci Rep Article The square root operation is indispensable in a myriad of computational science and engineering applications. Various computational techniques have been devised to approximate its value. In particular, convergence methods employed in this regard are highly affected by the initial approximation of the seed value. Research shows that the provision of an initial approximation with higher accuracy yields fewer additional iterations to calculate the square root. In this article, we propose two novel algorithms. The first one presents a seed generation technique that depends on bit manipulation and whose output is to be used as an initial value in the calculation of square roots. The second one describes a quadrature-based square rooting method that utilizes a rectangle as the plane figure for squaring. We provide error estimation of the former using the vertical parabola equation and employ a suitable lookup table, for the latter, to store needed cosine values. The seed generation approach produces a significant reduction in the number of iterations of up to 84.42% for selected convergence methods. The main advantages of our proposed square rooting algorithm lie in its high accuracy and in its requirement of just a single iteration. Our proposed algorithm also provides for lower computational latency, measured in the number of clock cycles, compared to Newton–Raphson’s and Bakhshali’s square rooting methods. Nature Publishing Group UK 2022-11-29 /pmc/articles/PMC9708849/ /pubmed/36446880 http://dx.doi.org/10.1038/s41598-022-25039-y Text en © The Author(s) 2022 https://creativecommons.org/licenses/by/4.0/Open AccessThis article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/ (https://creativecommons.org/licenses/by/4.0/) . |
spellingShingle | Article Altamimi, Amal Ben Youssef, Belgacem Novel seed generation and quadrature-based square rooting algorithms |
title | Novel seed generation and quadrature-based square rooting algorithms |
title_full | Novel seed generation and quadrature-based square rooting algorithms |
title_fullStr | Novel seed generation and quadrature-based square rooting algorithms |
title_full_unstemmed | Novel seed generation and quadrature-based square rooting algorithms |
title_short | Novel seed generation and quadrature-based square rooting algorithms |
title_sort | novel seed generation and quadrature-based square rooting algorithms |
topic | Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9708849/ https://www.ncbi.nlm.nih.gov/pubmed/36446880 http://dx.doi.org/10.1038/s41598-022-25039-y |
work_keys_str_mv | AT altamimiamal novelseedgenerationandquadraturebasedsquarerootingalgorithms AT benyoussefbelgacem novelseedgenerationandquadraturebasedsquarerootingalgorithms |