{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,4,23]],"date-time":"2026-04-23T08:09:50Z","timestamp":1776931790381,"version":"3.51.2"},"reference-count":33,"publisher":"MDPI AG","issue":"1","license":[{"start":{"date-parts":[[2021,1,9]],"date-time":"2021-01-09T00:00:00Z","timestamp":1610150400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Entropy"],"abstract":"<jats:p>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\u2013Raphson coefficients. The obtained algorithms are much more accurate than the original fast inverse square root algorithm and have similar very low computational costs.<\/jats:p>","DOI":"10.3390\/e23010086","type":"journal-article","created":{"date-parts":[[2021,1,10]],"date-time":"2021-01-10T19:55:56Z","timestamp":1610308556000},"page":"86","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":16,"title":["Improving the Accuracy of the Fast Inverse Square Root by Modifying Newton\u2013Raphson Corrections"],"prefix":"10.3390","volume":"23","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-2147-7222","authenticated-orcid":false,"given":"Cezary J.","family":"Walczyk","sequence":"first","affiliation":[{"name":"Wydzia\u0142 Fizyki, Uniwersytet w Bia\u0142ymstoku, ul. Cio\u0142kowskiego 1L, 15-245 Bia\u0142ystok, Poland"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Leonid V.","family":"Moroz","sequence":"additional","affiliation":[{"name":"Department of Security Information and Technology, Lviv Polytechnic National University, st. Kn. Romana 1\/3, 79000 Lviv, Ukraine"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-1730-0950","authenticated-orcid":false,"given":"Jan L.","family":"Cie\u015bli\u0144ski","sequence":"additional","affiliation":[{"name":"Wydzia\u0142 Fizyki, Uniwersytet w Bia\u0142ymstoku, ul. Cio\u0142kowskiego 1L, 15-245 Bia\u0142ystok, Poland"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"1968","published-online":{"date-parts":[[2021,1,9]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","unstructured":"Ercegovac, M.D., and Lang, T. (2003). Digital Arithmetic, Morgan Kaufmann.","DOI":"10.1016\/B978-155860798-9\/50011-7"},{"key":"ref_2","unstructured":"Parhami, B. (2010). Computer Arithmetic: Algorithms and Hardware Designs, Oxford University Press. [2nd ed.]."},{"key":"ref_3","doi-asserted-by":"crossref","unstructured":"Muller, J.-M., Brunie, N., Dinechin, F., Jeannerod, C.-P., Joldes, M., Lef\u00e8vre, V., Melquiond, G., Revol, N., and Torres, S. (2018). Handbook of Floating-Point Arithmetic, Birkh\u00e4user. [2nd ed.].","DOI":"10.1007\/978-3-319-76526-6"},{"key":"ref_4","doi-asserted-by":"crossref","unstructured":"Eberly, D.H. (2015). GPGPU Programming for Games and Science, CRC Press.","DOI":"10.1201\/b17296"},{"key":"ref_5","unstructured":"Beebe, N.H.F. (2017). The Mathematical-Function Computation Handbook: Programming Using the MathCW Portable Software Library, Springer."},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"A1541","DOI":"10.1137\/19M1257780","article-title":"A class of fast and accurate summation algorithms","volume":"42","author":"Blanchard","year":"2020","journal-title":"SIAM J. Sci. Comput."},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"159","DOI":"10.1109\/MSP.2018.2875977","article-title":"Efficient floating-point division for digital signal processing application","volume":"36","author":"Moroz","year":"2019","journal-title":"IEEE Signal Process. Mag."},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"1059","DOI":"10.1109\/TC.2012.82","article-title":"Power Efficient Division and Square root Unit","volume":"61","author":"Liu","year":"2012","journal-title":"IEEE Trans. Comp."},{"key":"ref_9","doi-asserted-by":"crossref","unstructured":"Viitanen, T., J\u00e4\u00e4skel\u00e4inen, P., Esko, O., and Takala, J. (2013, January 26\u201331). Simplified floating-point division and square root. Proceedings of the IEEE International Conference Acoustics Speech and Signal Process, Vancouver, BC, Canada.","DOI":"10.1109\/ICASSP.2013.6638148"},{"key":"ref_10","unstructured":"Cornea, M. (2015). Intel\u00ae AVX-512 Instructions and Their Use in the Implementation of Math Functions, Intel Corporation."},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"022015","DOI":"10.1088\/1742-6596\/513\/2\/022015","article-title":"Geant4 Electromagnetic Physics for LHC Upgrade","volume":"513","author":"Ivanchenko","year":"2014","journal-title":"J. Phys. Conf. Seriies"},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"052027","DOI":"10.1088\/1742-6596\/513\/5\/052027","article-title":"Speeding up HEP experiment software with a library of fast and auto-vectorisable mathematical functions","volume":"513","author":"Piparo","year":"2014","journal-title":"J. Phys. Conf. Seriies"},{"key":"ref_13","doi-asserted-by":"crossref","first-page":"032044","DOI":"10.1088\/1742-6596\/898\/3\/032044","article-title":"Acceleration of Cherenkov angle reconstruction with the new Intel Xeon\/FPGA compute platform for the particle identification in the LHCb Upgrade","volume":"898","author":"Faerber","year":"2017","journal-title":"J. Phys. Conf. Seriies"},{"key":"ref_14","unstructured":"Ercegovac, M.D., and Lang, T. (1994). Division and Square Root: Digit Recurrence Algorithms and Implementations, Kluwer Academic Publishers."},{"key":"ref_15","unstructured":"Kwon, T.J., and Draper, J. (2008, January 10\u201313). Floating-point Division and Square root Implementation using a Taylor-Series Expansion Algorithm with Reduced Look-Up Table. Proceedings of the 51st Midwest Symposium on Circuits and Systems, Knoxville, TN, USA."},{"key":"ref_16","unstructured":"Aguilera-Galicia, C.R. (2019). Design and Implementation of Reciprocal Square Root Units on Digital ASIC Technology for Low Power Embedded Applications. [Ph.D. Thesis, ITESO]."},{"key":"ref_17","unstructured":"Lemaitre, F. (2019). Tracking Haute Frequence Pour Architectures SIMD: Optimization de la Reconstruction LHCb. [Ph.D. Thesis, Paris University IV (Sorbonne)]. (CERN-THESIS-2019-014)."},{"key":"ref_18","doi-asserted-by":"crossref","first-page":"37","DOI":"10.1109\/40.755466","article-title":"AMD 3DNow! technology: Architecture and implementations","volume":"19","author":"Oberman","year":"1999","journal-title":"IEEE Micro"},{"key":"ref_19","unstructured":"(2021, January 08). id software, quake3-1.32b\/code\/game\/q_math.c, Quake III Arena. Available online: https:\/\/github.com\/id-Software\/Quake-III-Arena\/blob\/master\/code\/game\/q_math.c."},{"key":"ref_20","unstructured":"Sarma, D.D., and Matula, D.W. (1995, January 19\u201321). Faithful bipartite ROM reciprocal tables. Proceedings of the 12th IEEE Symposium on Computer Arithmetic, Bath, UK."},{"key":"ref_21","first-page":"1","article-title":"The symmetric table addition method for accurate function approximation","volume":"11","author":"Stine","year":"1999","journal-title":"J. VLSI Signal Process."},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"80","DOI":"10.1109\/38.595279","article-title":"Floating-point tricks","volume":"17","author":"Blinn","year":"1997","journal-title":"IEEE Comput. Graph. Appl."},{"key":"ref_23","unstructured":"Lomont, C. (2021, January 08). Fast Inverse Square Root, Purdue University, Technical Report. Available online: http:\/\/www.lomont.org\/papers\/2003\/InvSqrt.pdf."},{"key":"ref_24","unstructured":"Robertson, M. (2012). A Brief History of InvSqrt. [Bachelor\u2019s Thesis, University of New Brunswick]."},{"key":"ref_25","unstructured":"Warren, H.S. (2013). Hacker\u2019s Delight, Pearson Education. [2nd ed.]."},{"key":"ref_26","doi-asserted-by":"crossref","first-page":"645","DOI":"10.1007\/s10470-013-0128-5","article-title":"Novel detector implementations for 3G LTE downlink and uplink","volume":"78","author":"Janhunen","year":"2014","journal-title":"Analog. Integr. Circ. Sig. Process."},{"key":"ref_27","doi-asserted-by":"crossref","unstructured":"Hsu, C.J., Chen, J.L., and Chen, L.G. (2015, January 17). An Efficient Hardware Implementation of HON4D Feature Extraction for Real-time Action Recognition. Proceedings of the 2015 IEEE International Symposium on Consumer Electronics (ISCE), Madrid, Spain.","DOI":"10.1109\/ISCE.2015.7177775"},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"219","DOI":"10.1109\/TBCAS.2014.2376956","article-title":"A UWB Radar Signal Processing Platform for Real-Time Human Respiratory Feature Extraction Based on Four-Segment Linear Waveform Model","volume":"10","author":"Hsieh","year":"2016","journal-title":"IEEE Trans. Biomed. Circ. Syst."},{"key":"ref_29","doi-asserted-by":"crossref","unstructured":"Sangeetha, D., and Deepa, P. (2016). Efficient Scale Invariant Human Detection using Histogram of Oriented Gradients for IoT Services. 2017 30th International Conference on VLSI Design and 2017 16th International Conference on Embedded Systems, IEEE.","DOI":"10.1109\/VLSID.2017.60"},{"key":"ref_30","doi-asserted-by":"crossref","unstructured":"Hasnat, A., Bhattacharyya, T., Dey, A., Halder, S., and Bhattacharjee, D. (2017, January 23\u201324). A fast FPGA based architecture for computation of square root and Inverse Square Root. Proceedings of the 2nd International Conference on Devices for Integrated Circuit, DevIC 2017, Kalyani, Nadia, India.","DOI":"10.1109\/DEVIC.2017.8073975"},{"key":"ref_31","doi-asserted-by":"crossref","first-page":"245","DOI":"10.1016\/j.amc.2017.08.025","article-title":"Fast calculation of inverse square root with the use of magic constant \u2013 analytical approach","volume":"316","author":"Moroz","year":"2018","journal-title":"Appl. Math. Comput."},{"key":"ref_32","doi-asserted-by":"crossref","unstructured":"Walczyk, C.J., Moroz, L.V., and Cie\u015bli\u0144ski, J.L. (2019). A Modification of the Fast Inverse Square Root Algorithm. Computation, 7.","DOI":"10.20944\/preprints201908.0045.v1"},{"key":"ref_33","doi-asserted-by":"crossref","first-page":"101017","DOI":"10.1016\/j.jocs.2019.07.004","article-title":"Auto-tuning for floating-point precision with Discrete Stochastic Arithmetic","volume":"36","author":"Graillat","year":"2019","journal-title":"J. Comput. Sci."}],"container-title":["Entropy"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1099-4300\/23\/1\/86\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,11]],"date-time":"2025-10-11T05:09:04Z","timestamp":1760159344000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1099-4300\/23\/1\/86"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2021,1,9]]},"references-count":33,"journal-issue":{"issue":"1","published-online":{"date-parts":[[2021,1]]}},"alternative-id":["e23010086"],"URL":"https:\/\/doi.org\/10.3390\/e23010086","relation":{},"ISSN":["1099-4300"],"issn-type":[{"value":"1099-4300","type":"electronic"}],"subject":[],"published":{"date-parts":[[2021,1,9]]}}}