|
| asin| Summary | |
#include <math.h>
float asin (
float x); /* number to calculate arc sine of */
| | Description | | The asin 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 asin is a number in the -π/2 to π/2 range. | | Return Value | | The asin function returns the arc sine of x. | | See Also | | acos, atan, atan2 | | Example | |
#include <math.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 = asin (x);
printf ("ASIN(%f) = %f\n", x, y);
}
}
|
|
|