1asin(3)                    Library Functions Manual                    asin(3)
2
3
4

NAME

6       asin, asinf, asinl - arc sine function
7

LIBRARY

9       Math library (libm, -lm)
10

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

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

ERRORS

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

ATTRIBUTES

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

STANDARDS

61       C11, POSIX.1-2008.
62

HISTORY

64       C99, POSIX.1-2001.
65
66       The variant returning double also conforms to SVr4, 4.3BSD, C89.
67

SEE ALSO

69       acos(3), atan(3), atan2(3), casin(3), cos(3), sin(3), tan(3)
70
71
72
73Linux man-pages 6.05              2023-07-20                           asin(3)
Impressum