Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
and
div
eof
not
or
xor
Expand Minimize

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
);

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.

Input

SEH Exception

Matherr Exception

± ∞

INVALID

_DOMAIN

± QNAN,IND

none

_DOMAIN

|x|>1

INVALID

_DOMAIN

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.

Routine

Required header

asin, asinf, asinl

<math.h>

For more information, see acos, acosf, acosl.

Show:
© 2015 Microsoft