Redirigiendo al acceso original de articulo en 19 segundos...
Inicio  /  Computation  /  Vol: 9 Par: 2 (2021)  /  Artículo
ARTÍCULO
TITULO

Modified Fast Inverse Square Root and Square Root Approximation Algorithms: The Method of Switching Magic Constants

Leonid V. Moroz    
Volodymyr V. Samotyy and Oleh Y. Horyachyy    

Resumen

Many low-cost platforms that support floating-point arithmetic, such as microcontrollers and field-programmable gate arrays, do not include fast hardware or software methods for calculating the square root and/or reciprocal square root. Typically, such functions are implemented using direct lookup tables or polynomial approximations, with a subsequent application of the Newton?Raphson method. Other, more complex solutions include high-radix digit-recurrence and bipartite or multipartite table-based methods. In contrast, this article proposes a simple modification of the fast inverse square root method that has high accuracy and relatively low latency. Algorithms are given in C/C++ for single- and double-precision numbers in the IEEE 754 format for both square root and reciprocal square root functions. These are based on the switching of magic constants in the initial approximation, depending on the input interval of the normalized floating-point numbers, in order to minimize the maximum relative error on each subinterval after the first iteration?giving 13 correct bits of the result. Our experimental results show that the proposed algorithms provide a fairly good trade-off between accuracy and latency after two iterations for numbers of type float, and after three iterations for numbers of type double when using fused multiply?add instructions?giving almost complete accuracy.

 Artículos similares

       
 
Yussuf Ahmed, Muhammad Ajmal Azad and Taufiq Asyhari    
In recent years, there has been a notable surge in both the complexity and volume of targeted cyber attacks, largely due to heightened vulnerabilities in widely adopted technologies. The Prediction and detection of early attacks are vital to mitigating p... ver más
Revista: Information

 
Wen Tian, Yining Zhang, Ying Zhang, Haiyan Chen and Weidong Liu    
To fully leverage the spatiotemporal dynamic correlations in air traffic flow and enhance the accuracy of traffic flow prediction models, thereby providing a more precise basis for perceiving congestion situations in the air route network, a study was co... ver más
Revista: Aerospace

 
Lucio Pinello, Omar Hassan, Marco Giglio and Claudio Sbarufatti    
An increase in aircraft availability and readiness is one of the most desired characteristics of aircraft fleets. Unforeseen failures cause additional expenses and are particularly critical when thinking about combat jets and Unmanned Aerial Vehicles (UA... ver más
Revista: Aerospace

 
Chi Han, Wei Xiong and Ronghuan Yu    
Mega-constellation network traffic forecasting provides key information for routing and resource allocation, which is of great significance to the performance of satellite networks. However, due to the self-similarity and long-range dependence (LRD) of m... ver más
Revista: Aerospace

 
Qiang Cheng, Gun Huang, Zhiqiang Li, Jie Zheng and Qinming Liang    
The gas contained in coal plays a crucial role in triggering coal and gas outbursts. During an outburst, a large quantity of gas originally absorbed by coal is released from pulverized coal. The role this part of the gas plays in the process of coal and ... ver más
Revista: Applied Sciences