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
div
eof
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

asin, asinf 

Calculate the arcsine.


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

Parameters

x

Value whose arcsine is to be calculated.

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

If x is less than –1 or greater than 1, asin returns an indefinite by default.

Input SEH Exception Matherr Exception

± ∞

INVALID

_DOMAIN

± QNAN,IND

none

_DOMAIN

|x|>1

INVALID

_DOMAIN

C++ allows overloading, so you can call overloads of asin. In a C program, asin always takes and returns a double.

Routine Required header Compatibility

asin, asinf

<math.h>

ANSI, Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003

For more information, see acos, acosf.

Community Additions

ADD
Show:
© 2015 Microsoft