Function Atan2
The Atan2 function computes an angle between the X axis and the line from the origin to the point X+iY, where the abscissa X=b and the ordinate Y=b are vector elements.
Performance:
| Default processor | Intel® Pentium® III processor | Intel® Pentium® 4 processor | Intel® Itanium® 2 processor | |
| vsAtan2 (HA version) | 85.59 | 78.98 | 56.10 | 12.32 |
| vdAtan2 (HA version) | 139.92 | 139.96 | 113.27 | 19.45 |
Notes:
1) *
X87 code for all processors
2) **
Intel® Pentium® III processor
3) ***
Intel® Pentium® 4 processor
4) ****
Intel® Itanium® 2 processor
5) Logarithmic scale is used for "Vectors Size" axis
Maximal observed error for the whole function domain:
| Default processor | Pentium III processor | Pentium 4 processor | Itanium 2 processor | |
| vsAtan2 (HA version) | 0.7520 | 0.9528 | 0.7961 | 0.5030 |
| vdAtan2 (HA version) | 0.5773 | 0.5773 | 0.7450 | 0.5015 |
Special values:
| Function | Input Argument | Result | Default processor | Pentium III processor | Pentium 4 processor | Itanium 2 processor |
|
vsAtan2/vdAtan2 (HA version) |
x=-Inf, y=-Inf | -3*PI/4 | + | + | + | + |
| x=-Inf, y pos. finite | -PI/2 | + | + | + | + | |
| x=-Inf, y=0 | -PI/2 | + | + | + | + | |
| x=-Inf, y=+Inf | -PI/4 | + | + | + | + | |
| x=-Inf, y pos.finite | -PI/2 | + | + | + | + | |
| x=-Inf, y=NaN | NaN | + | + | + | + | |
| x neg. finite, y= -Inf | PI | + | + | + | + | |
| x neg. finite, y= 0 | PI/2 | + | + | + | + | |
| x neg. finite, y=+Inf | 0 | + | + | + | + | |
| x neg. finite, y=NaN | NaN | + | + | + | + |
Copyright © 2000-2003, Intel Corporation, All Rights Reserved.