A trigonometric function calculation method and device based on interval division and CORDIC
A technology of trigonometric functions and calculation methods, applied in calculation, electrical digital data processing, digital data processing components, etc., can solve problems such as limited angle coverage, long cycle iterations, and low calculation accuracy, so as to save raw materials and The effect of energy consumption, reducing the number of iterations, and improving computational efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0075] This embodiment discloses a trigonometric function calculation method based on interval division and CORDIC, such as Figure 3-4 shown, including the following steps:
[0076] Step 1: Input any angle θ, and map it to the interval (0,2π) according to the periodicity of the trigonometric function;
[0077] The specific method is to divide the angle by 2π and take the remainder, that is, θ MOD1 = mod(θ,2π);
[0078] Step 2: Divide a periodic interval into 8 equal parts according to the symmetry of trigonometric functions, and divide θ MOD1 Mapped to the interval (0, π / 4);
[0079] The specific operation is to set θ MOD1 Divide by π / 4 to get the quotient θ ceil =ceil(θ MOD1 ,π / 4) and the remainder θ MOD2 =MOD(θ MOD1 ,π / 4);
[0080] Step 3: Divide the interval (0, π / 4) into 2 k parts, the angular range of each interval is The starting angle of each interval is
[0081]
[0082] Step 4: Because the angle of each iteration loop is tan -1 2 -n , so the rotatio...
Embodiment 2
[0103] The purpose of this embodiment is to provide a computing device.
[0104] A computing device comprising a memory and a processor,
[0105] The memory on the memory is pre-stored: interval (0, π / 4)2 k The trigonometric function value of the initial angle of each angle interval obtained by equal division, and a computer program that can run on a processor, when the processor executes the program, it realizes:
[0106] Receive the angle to be solved, map the angle to the periodic interval (0, 2π), and obtain the first mapped angle;
[0107] Mapping the first mapping angle to the interval (0, π / 4) to obtain a second mapping angle;
[0108] judging the angle interval to which the second mapping angle belongs in the interval (0, π / 4);
[0109] According to the starting angle of the angle interval, starting from the kth iteration, the trigonometric function calculation is performed based on the CODIC algorithm;
[0110] Based on the calculation result, the trigonometric fu...
Embodiment 3
[0113] The purpose of this embodiment is to provide a computer-readable storage medium.
[0114] A computer-readable storage medium having the interval (0, π / 4)2 stored thereon k The trigonometric function value of the initial angle of each angle interval obtained by equal division, and a computer program, the following steps are performed when the program is executed by the processor:
[0115] Receive the angle to be solved, map the angle to the periodic interval (0, 2π), and obtain the first mapped angle;
[0116] Mapping the first mapping angle to the interval (0, π / 4) to obtain a second mapping angle;
[0117] judging the angle interval to which the second mapping angle belongs in the interval (0, π / 4);
[0118] According to the starting angle of the angle interval, starting from the kth iteration, the trigonometric function calculation is performed based on the CODIC algorithm;
[0119] Based on the calculation result, the trigonometric function value of the angle to b...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


