A square root algorithm faster than Newton's method for multiprecision numbers, using floating-point arithmetic
Fuente:
arXiv
Enregistré dans:
| Auteur principal: | |
|---|---|
| Format: | Preprint |
| Publié: |
2024
|
| Sujets: | |
| Accès en ligne: | |
| Tags: |
Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
|
| _version_ | 1866909222168428544 |
|---|---|
| author | Romano, Fabio |
| author_facet | Romano, Fabio |
| contents | In this paper, an optimized version of classical Bombelli's algorithm for computing integer square roots is presented. In particular, floating-point arithmetic is used to compute the initial guess of each digit of the root, following similar ideas to those used in "The Art of Computer Programming" Vol. 2, p. 4.3.1 for division. A program with an implementation of the algorithm in Java is also presented, and its running time is compared with that of the algorithm provided by the Java standard library, which uses the Newton's method. From tests, the algorithm presented here turns out to be much faster. |
| format | Preprint |
| id |
arxiv_https___arxiv_org_abs_2406_07751 |
| institution | arXiv |
| publishDate | 2024 |
| record_format | arxiv |
| spellingShingle | A square root algorithm faster than Newton's method for multiprecision numbers, using floating-point arithmetic Romano, Fabio Mathematical Software Data Structures and Algorithms Numerical Analysis In this paper, an optimized version of classical Bombelli's algorithm for computing integer square roots is presented. In particular, floating-point arithmetic is used to compute the initial guess of each digit of the root, following similar ideas to those used in "The Art of Computer Programming" Vol. 2, p. 4.3.1 for division. A program with an implementation of the algorithm in Java is also presented, and its running time is compared with that of the algorithm provided by the Java standard library, which uses the Newton's method. From tests, the algorithm presented here turns out to be much faster. |
| title | A square root algorithm faster than Newton's method for multiprecision numbers, using floating-point arithmetic |
| topic | Mathematical Software Data Structures and Algorithms Numerical Analysis |
| url | https://arxiv.org/abs/2406.07751 |