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