| Literature DB >> 31775303 |
Mohieddine Benammar1, Abdulrahman Alassi1,2, Adel Gastli1, Lazhar Ben-Brahim1, Farid Touati1.
Abstract
Fast and accurate arctangent approximations are used in several contemporary applications, including embedded systems, signal processing, radar, and power systems. Three main approximation techniques are well-established in the literature, varying in their accuracy and resource utilization levels. Those are the iterative coordinate rotational digital computer (CORDIC), the lookup tables (LUTs)-based, and the rational formulae techniques. This paper presents a novel technique that combines the advantages of both rational formulae and LUT approximation methods. The new algorithm exploits the pseudo-linear region around the tangent function zero point to estimate a reduced input arctangent through a modified rational approximation before referring this estimate to its original value using miniature LUTs. A new 2nd order rational approximation formula is introduced for the first time in this work and benchmarked against existing alternatives as it improves the new algorithm performance. The eZDSP-F28335 platform has been used for practical implementation and results validation of the proposed technique. The contributions of this work are summarized as follows: (1) introducing a new approximation algorithm with high precision and application-based flexibility; (2) introducing a new rational approximation formula that outperforms literature alternatives with the algorithm at higher accuracy requirement; and (3) presenting a practical evaluation index for rational approximations in the literature.Entities:
Keywords: CORDIC; arctangent approximation; look-up-tables; minimax optimization; novel algorithm; position sensors; rational approximations; signals processing
Year: 2019 PMID: 31775303 PMCID: PMC6928950 DOI: 10.3390/s19235148
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.576
Figure 1Generic arctangent approximation block diagram.
Qualitative Comparison of Arctangent Approximation Methods.
| Technique | Advantages | Limitations |
|---|---|---|
|
|
Requires minimal hardware resources. Can theoretically achieve any target minimum error. |
High execution time for high-accuracy applications because of the large number of required iterations. |
|
|
Very fast execution. Enhanced accuracy using interpolation. |
Excessive memory requirements for high-accuracy applications. |
|
|
High Accuracy *. Efficient Implementation *. |
Constant maximum error per expression (non-adaptive). Computationally expensive for higher-order expressions. |
* Depends on the used approximation formula.
Figure 2Practical verification setup block diagram using the eZDSP-F28335 platform.
Arctangent rational approximations, their practical execution time on the eZDSP platform, and their maximum errors.
| Work |
|
| |
|---|---|---|---|
| [ |
| 0.0030 | 18.00 |
| [ |
| 0.0081 | 6.60 |
| Present, Equation (5) |
| 0.0777 | 3.50 |
| [ |
| 0.0862 | 0.57 |
| [ |
| 0.2000 | 3.52 |
| [ |
| 0.2138 | 0.54 |
| [ |
| 0.2632 | 3.42 |
| [ |
| 0.2833 | 1.91 |
| [ |
| 0.3502 | 1.92 |
* Reference [1] includes 3 different approximations, titled here a, b, and c; ** The reported equation is re-written here in the same format as other formulas.
Figure 3Basic concept the proposed arctangent approximation scheme applicable in the input range .
Figure 4Angle segmentation routine for the proposed algorithm using Equation (5) with k = 5. The estimated arctangent angle is shown shifted down by 1° for clearly distinguishing it from θ.
Numeric Application example of the proposed algorithm.
|
| ||
|---|---|---|
|
|
|
|
| 1 | 0.1584 | 9° |
| 2 | 0.3249 | 18° |
|
|
|
|
|
|
|
|
| 5 | 1.0000 | 45° |
|
| ||
|
|
| |
|
| ||
|
| ||
|
|
| |
Figure 5Detailed flowchart of the proposed algorithm. could be in principle estimated using any re-optimized approximation formula from Table 2.
Figure 6Comparisons of the interval size effect on the maximum error and required resources for k = 3 and 5 using Equation (5).
Figure 7Maximum error vs. number of intervals (k) for different rational approximation formulae.
Figure 8Practical result of the proposed algorithm execution time with k = 5 using Equation (5).
Test case: Performance assessment of the three approximation candidates based on a common target error.
| Work | Ref. [ | Equation (5) | Ref. [ |
|---|---|---|---|
| Test Case Target Error | |||
| Required Intervals ( |
|
|
|
| Computational Time ( |
|
|
|
| Required LUT locations |
|
|
|