Method for realizing arc tangent calculation based on CORDIC algorithm
A technology of arctangent and algorithm, applied in the field of arctangent calculation, to achieve the effect of low hardware cost, simple operation, angle range and precision optimization
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0051] A method for realizing arctangent calculation based on CORDIC algorithm described in this application, firstly, the input (x, y) is processed by quadrant preprocessing module and absolute value preprocessing module in turn, and then iterative calculation is performed by CORDIC algorithm module In order to realize arctangent calculation; both x and y in the input (x, y) are represented by signed numbers.
[0052] The quadrant preprocessing module first judges the input (x, y) to see if it needs to be converted to ensure that the input value after completing this step is located in the first quadrant; the specific processing process is: if (x, y) ) in the first quadrant, the data remains unchanged; if (x, y) is in the second quadrant, preprocess (x, y) into (y, -x), that is, rotate 90° clockwise; if (x, y) y) In the third quadrant, preprocess (x,y) to (-x,-y), that is, rotate 180° clockwise; if (x,y) is in the fourth quadrant, preprocess (x,y) is (-y,x), which is a 270° cl...
Embodiment 2
[0070] Embodiment 2: In this embodiment, the only difference from Embodiment 1 is that the input (x, y) is specifically (8, 10). Depend on Figure 4 It can be seen that in this Example 2, the angle error is reduced from 8.01° to 0.01°.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


