asin

Computes the principal value of the arc sine of the specified argument

Local Servers:nonblocking
Remote Servers:N/A
Classification:ANSI
Service:Mathematical Computation

Syntax

  #include <math.h>  
   
  double asin  (  
     double   x);
  

Parameters

x
(IN) Specifies an argument whose arc sine is to be computed.

Return Values

The asin function returns the arc sine in the range (-pi/, 2pi/2). When the argument is outside the permissible range, errno is set and matherr is called.

Remarks

A domain error occurs for arguments not in the range (-1,1).

See Also

acos, atan, atan2, matherr

Example

  #include <math.h>  
  #include <stdio.h>  
   
  main ()  
  {  
     printf ("%f\n",  asin (.5) );  
  }
  

produces the following:

  0.523599