asin
double asin ( double x ); | math.h |
cplusplus.com |
Calculate arcsine.
Performs the trigonometric arc sine operation on x and returns an
angle in the range from -PI/2 to PI/2 expressed in radians.
Parameters.
Return Value.
Arc sine of x.
Portability.
Defined in ANSI-C.
ANSI-C++ adds float and double overloaded versions of this function,
with the same bahavior but being both, parameter and result, of one of these types.
Example.
/* asin example */ #include <stdio.h> #include <math.h> #define PI 3.14159265 main () { double param, result; param = 0.5; result = asin (param) * 180 / PI; printf ("Arcsine of %lf is %lf degrees\n", param, result ); return 0; }Output:
See also.
acos,
atan,
cos,
sin,
tan