asin
Arc sine function
Interface
#include <math.h>
double | asin (double x) |
long | asinl (long double x) |
float | asinf (float x) |
#include <complex.h>
complex | asin (complex x) |
double complex | casin (complex x) |
float complex | casinf (float complex x) |
long double complex | casinl (long double complex x) |
Description
The asin function computes the principal value of the arc sine of x in the range![[-1,1]](/cache/eqns/c48caead504a884b6ccf377fbebd927a_371.gif)
![[-\pi/2,+\pi/2]](/cache/eqns/c89a2ccd6a2350acf3b57dbfc57331aa_864.gif)

Example:
Example - Arc sine function
Workings
#include <stdio.h> #include <math.h> int main(void) { double result, x = 0.289; result = asin(x); printf("The arc sin of %lf is %lf\n", x, result); return 0; }
Solution
Output:
The arc sin of 0.289000 is 0.293182