|
| acos517| Summary | |
#include <80c517.h>
float acos517 (
float x); /* number to calculate arc cosine of */
| | Description | | The acos517 function calculates the arc cosine of the floating-point number x whose value must be between -1 and 1. The floating-point value returned by acos517 is a number in the range 0-π. 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 acos517 function returns the arc cosine of x. | | See Also | | acos, asin, asin517, atan, atan2, atan517 | | Example | |
#include <80c517.h>
#include <stdio.h> /* for printf */
void tst_acos (void) {
float x;
float y;
for (x = -1.0; x <= 1.0; x += 0.1) {
y = acos517 (x);
printf ("ACOS517(%f) = %f\n", x, y);
}
}
|
|
|