1acosh(3) Library Functions Manual acosh(3)
2
3
4
6 acosh, acoshf, acoshl - inverse hyperbolic cosine function
7
9 Math library (libm, -lm)
10
12 #include <math.h>
13
14 double acosh(double x);
15 float acoshf(float x);
16 long double acoshl(long double x);
17
18 Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
19
20 acosh():
21 _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
22 || _XOPEN_SOURCE >= 500
23 || /* Since glibc 2.19: */ _DEFAULT_SOURCE
24 || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
25
26 acoshf(), acoshl():
27 _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
28 || /* Since glibc 2.19: */ _DEFAULT_SOURCE
29 || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
30
32 These functions calculate the inverse hyperbolic cosine of x; that is
33 the value whose hyperbolic cosine is x.
34
36 On success, these functions return the inverse hyperbolic cosine of x.
37
38 If x is a NaN, a NaN is returned.
39
40 If x is +1, +0 is returned.
41
42 If x is positive infinity, positive infinity is returned.
43
44 If x is less than 1, a domain error occurs, and the functions return a
45 NaN.
46
48 See math_error(7) for information on how to determine whether an error
49 has occurred when calling these functions.
50
51 The following errors can occur:
52
53 Domain error: x is less than 1
54 errno is set to EDOM. An invalid floating-point exception
55 (FE_INVALID) is raised.
56
58 For an explanation of the terms used in this section, see at‐
59 tributes(7).
60
61 ┌────────────────────────────────────────────┬───────────────┬─────────┐
62 │Interface │ Attribute │ Value │
63 ├────────────────────────────────────────────┼───────────────┼─────────┤
64 │acosh(), acoshf(), acoshl() │ Thread safety │ MT-Safe │
65 └────────────────────────────────────────────┴───────────────┴─────────┘
66
68 C11, POSIX.1-2008.
69
71 C99, POSIX.1-2001.
72
73 The variant returning double also conforms to SVr4, 4.3BSD.
74
76 asinh(3), atanh(3), cacosh(3), cosh(3), sinh(3), tanh(3)
77
78
79
80Linux man-pages 6.04 2023-03-30 acosh(3)