The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
We recommend using Visual Studio 2017

asin, asinf, asinl


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on

The latest version of this topic can be found at asin, asinf, asinl.

Calculates the arcsine.

double asin(   
   double x   
float asin(  
   float x  
);  // C++ only  
long double asin(  
   long double x  
);  // C++ only  
float asinf (   
   float x   
long double asinl(  
   long double x  


Value whose arcsine is to be calculated.

The asin function returns the arcsine (the inverse sine function) of x in the range –π/2 to π/2 radians.

By default, if x is less than –1 or greater than 1, asin returns an indefinite.

InputSEH ExceptionMatherr Exception

Because C++ allows overloading, you can call overloads of asin with float and long double values. In a C program, asin always takes and returns a double.

RoutineRequired header
asin, asinf, asinl<math.h>

For more information, see acos, acosf, acosl.


Floating-Point Support
acos, acosf, acosl
atan, atanf, atanl, atan2, atan2f, atan2l
cos, cosf, cosl, cosh, coshf, coshl
sin, sinf, sinl, sinh, sinhf, sinhl
tan, tanf, tanl, tanh, tanhf, tanhl