double asin(double x);
double asin (double x); float asinf (float x);long double asinl (long double x);
double asin (double x); float asin (float x);long double asin (long double x);
double asin (double x); float asin (float x);long double asin (long double x); double asin (T x); // additional overloads for integral types
<cmath> ) for the integral types: These overloads effectively cast x to a double before calculations (defined for T being any integral type ).<complex> and <valarray> (see complex asin and valarray asin).[-1,+1].180/PI degrees.1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* asin example */
#include <stdio.h> /* printf */
#include <math.h> /* asin */
#define PI 3.14159265
int main ()
{
double param, result;
param = 0.5;
result = asin (param) * 180.0 / PI;
printf ("The arc sine of %f is %f degrees\n", param, result);
return 0;
}
The arc sine of 0.500000 is 30.000000 degrees.