|
| atan517| Summary | |
#include <80c517.h>
float atan517 (
float x); /* number to calculate arc tangent of */
| | Description | | The atan517 function calculates the arc tangent of the floating-point number x. The floating-point value returned by atan517 is a number in the -π/2 to π/2 range. Note - This routine uses the arithmetic unit of the Infineon C517x/C509 to provide accelerated execution speed. Do not use this routine with a CPU that does not support this feature.
| | Return Value | | The atan517 function returns the arc tangent of x. | | See Also | | acos, acos517, asin, asin517, atan, atan2 | | Example | |
#include <80c517.h>
#include <stdio.h> /* for printf */
void tst_atan (void) {
float x;
float y;
for (x = -10.0; x <= 10.0; x += 0.1) {
y = atan517 (x);
printf ("ATAN517(%f) = %f\n", x, y);
}
}
|
|
|