首页 | 本学科首页   官方微博 | 高级检索  
     检索      


Improving the Accuracy of the Fast Inverse Square Root by Modifying Newton–Raphson Corrections
Authors:Cezary J Walczyk  Leonid V Moroz  Jan L Cie li&#x;ski
Institution:1.Wydział Fizyki, Uniwersytet w Białymstoku, ul. Ciołkowskiego 1L, 15-245 Białystok, Poland;2.Department of Security Information and Technology, Lviv Polytechnic National University, st. Kn. Romana 1/3, 79000 Lviv, Ukraine;
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.
Keywords:approximation of functions  floating-point arithmetic  Newton–  Raphson method  inverse square root  magic constant
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号