Section: Linux Programmer's Manual (3)
Return to Main Contents
asin, asinf, asinl - arc sine function
double asin(double x);
float asinf(float x);
long double asinl(long double x);
Link with -lm.
Feature Test Macro Requirements for glibc (see
_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE >= 600 || _ISOC99_SOURCE ||
_POSIX_C_SOURCE >= 200112L;
function calculates the principal value of the arc sine of
that is the value whose sine is
On success, these functions return the principal value of the arc sine of
in radians; the return value is in the range [-pi/2, pi/2].
is a NaN, a NaN is returned.
is +0 (-0),
+0 (-0) is returned.
is outside the range [-1, 1],
a domain error occurs,
and a NaN is returned.
for information on how to determine whether an error has occurred
when calling these functions.
The following errors can occur:
- Domain error: x is outside the range [-1, 1]
is set to
An invalid floating-point exception
The variant returning
also conforms to
SVr4, 4.3BSD, C89.
This page is part of release 3.54 of the Linux
A description of the project,
and information about reporting bugs,
can be found at
- RETURN VALUE
- CONFORMING TO
- SEE ALSO
This document was created by
using the manual pages.
Time: 12:56:50 GMT, January 21, 2018