Square root function implementation method
An implementation method, square root technology, applied in multiplication/division calculation operations, analog computers, simulation and hybrid calculations, etc., can solve problems affecting processing efficiency and other issues
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0016] refer to figure 1 , a kind of square root function realization method of the present invention, comprises the following steps:
[0017] 1) After receiving data X, judge X, and return an error code when X is a negative number;
[0018] 2) Normalize the parameter X, calculate the significant figure and exponent, and obtain the significant figure X1 and exponent a of X, X=X1*2 a , where the range of X1 is required to be in the [1 / 4,1) interval, and a is required to be an even number;
[0019] 3) The square root calculation of X1 uses the method of combining table lookup and interpolation, by looking up the square root lookup table pre-stored in the memory module, and the high N bits of X1 are used to calculate the square root lookup table index lookup table entry and Adjacent values are used as interpolation coefficients, and the lower M bits are used as mantissas, which are shifted to the [0,1) interval as interpolation variables for interpolation calculation, where ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


