The asin function

Name

asin -- 

Synopsis

#include <math.h>

double asin (double x );

Description

The asin function computes the principal value of the arc sine of x. A domain error occurs for arguments not in the range [-1, +1].

Returns

The asin function returns the arc sine in the range [-pi/2, +pi/2] radians.

Implementation Notes

For arguments < -1.0, asin returns -pi/2 and sets EDOM.
For arguments > +1.0, asin returns +pi/2 and sets EDOM.