1ASIN(3)                    Linux Programmer's Manual                   ASIN(3)
2
3
4

NAME

6       asin, asinf, asinl - arc sine function
7

SYNOPSIS

9       #include <math.h>
10
11       double asin(double x);
12       float asinf(float x);
13       long double asinl(long double x);
14
15       Link with -lm.
16
17   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
18
19       asinf(), asinl():
20           _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
21               || /* Since glibc 2.19: */ _DEFAULT_SOURCE
22               || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
23

DESCRIPTION

25       These  functions  calculate  the  principal value of the arc sine of x;
26       that is the value whose sine is x.
27

RETURN VALUE

29       On success, these functions return the principal value of the arc  sine
30       of x in radians; the return value is in the range [-pi/2, pi/2].
31
32       If x is a NaN, a NaN is returned.
33
34       If x is +0 (-0), +0 (-0) is returned.
35
36       If  x is outside the range [-1, 1], a domain error occurs, and a NaN is
37       returned.
38

ERRORS

40       See math_error(7) for information on how to determine whether an  error
41       has occurred when calling these functions.
42
43       The following errors can occur:
44
45       Domain error: x is outside the range [-1, 1]
46              errno  is  set  to  EDOM.   An  invalid floating-point exception
47              (FE_INVALID) is raised.
48

ATTRIBUTES

50       For  an  explanation  of  the  terms  used   in   this   section,   see
51       attributes(7).
52
53       ┌─────────────────────────┬───────────────┬─────────┐
54Interface                Attribute     Value   
55       ├─────────────────────────┼───────────────┼─────────┤
56asin(), asinf(), asinl() │ Thread safety │ MT-Safe │
57       └─────────────────────────┴───────────────┴─────────┘

CONFORMING TO

59       C99, POSIX.1-2001, POSIX.1-2008.
60
61       The variant returning double also conforms to SVr4, 4.3BSD, C89.
62

SEE ALSO

64       acos(3), atan(3), atan2(3), casin(3), cos(3), sin(3), tan(3)
65

COLOPHON

67       This  page  is  part of release 5.07 of the Linux man-pages project.  A
68       description of the project, information about reporting bugs,  and  the
69       latest     version     of     this    page,    can    be    found    at
70       https://www.kernel.org/doc/man-pages/.
71
72
73
74                                  2017-09-15                           ASIN(3)
Impressum