Name

asin, asinf, asinl
- arc sine function

Library

libm.lib

Synopsis

  #include <math.h>
  double asin (double x);
  float asinf (float x);
  long double asinl (long double x);

Return values

The asin, asinf, and asinl functions return the arc sine in the range -words [-pi/2, +pi/2] radians. If:
         
| x | > 1

         

asin (x);
returns an NaN.


Detailed description

The asin and asinf functions compute the principal value of the arc sine of x. The function asinl is an alias to the function asin. A domain error occurs for arguments not in the range [-1, +1].

Examples

#include <math.h>
int main( )
{
   double x = 0.5; 
   double y = asin( x );
   printf( "asin(%f) = %f\n", x, y );
   y = asinf( x );
   printf( "asinf(%f) = %f\n", x, y );
   y = asinl( x );
   printf( "asinl(%f) = %f\n", x, y ); 
}

         

Output

asin( 0.500000 ) = 0.523599
asinf(0.500000 ) = 0.523599
asinl(0.500000 ) = 0.523599

         


See also

acos, atan, atan2, cos, cosh, math, sin, sinh, tan, tanh

Feedback

For additional information or queries on this page send feedback

© 2005-2007 Nokia

Top