C library functions - asin ()
description
C library functionsdouble asin (double x) Returns in radians the arc sine of x.
statement
Here is () statement asin function.
double asin(double x)
parameter
- x - between [-1, +1] range of floating-point values.
return value
This function returns expressed in radians x arcsine, in radians interval [-pi / 2, + pi / 2].
Examples
The following example demonstrates asin () function is used.
#include <stdio.h> #include <math.h> #define PI 3.14159265 int main () { double x, ret, val; x = 0.9; val = 180.0 / PI; ret = asin(x) * val; printf("%lf 的反正弦是 %lf 度", x, ret); return(0); }
Let's compile and run the above program, which will result in the following:
0.900000 的反正弦是 64.190609 度