1ACOSH(3) Linux Programmer's Manual ACOSH(3)
2
3
4
6 acosh, acoshf, acoshl - inverse hyperbolic cosine function
7
9 #include <math.h>
10
11 double acosh(double x);
12 float acoshf(float x);
13 long double acoshl(long double x);
14
15 Link with -lm.
16
17 Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
18
19 acosh():
20 _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
21 || _XOPEN_SOURCE >= 500
22 || /* Since glibc 2.19: */ _DEFAULT_SOURCE
23 || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
24 acoshf(), acoshl():
25 _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
26 || /* Since glibc 2.19: */ _DEFAULT_SOURCE
27 || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
28
30 These functions calculate the inverse hyperbolic cosine of x; that is
31 the value whose hyperbolic cosine is x.
32
34 On success, these functions return the inverse hyperbolic cosine of x.
35
36 If x is a NaN, a NaN is returned.
37
38 If x is +1, +0 is returned.
39
40 If x is positive infinity, positive infinity is returned.
41
42 If x is less than 1, a domain error occurs, and the functions return a
43 NaN.
44
46 See math_error(7) for information on how to determine whether an error
47 has occurred when calling these functions.
48
49 The following errors can occur:
50
51 Domain error: x is less than 1
52 errno is set to EDOM. An invalid floating-point exception
53 (FE_INVALID) is raised.
54
56 For an explanation of the terms used in this section, see
57 attributes(7).
58
59 ┌─────────────────────────────┬───────────────┬─────────┐
60 │Interface │ Attribute │ Value │
61 ├─────────────────────────────┼───────────────┼─────────┤
62 │acosh(), acoshf(), acoshl() │ Thread safety │ MT-Safe │
63 └─────────────────────────────┴───────────────┴─────────┘
65 C99, POSIX.1-2001, POSIX.1-2008.
66
67 The variant returning double also conforms to SVr4, 4.3BSD.
68
70 asinh(3), atanh(3), cacosh(3), cosh(3), sinh(3), tanh(3)
71
73 This page is part of release 5.07 of the Linux man-pages project. A
74 description of the project, information about reporting bugs, and the
75 latest version of this page, can be found at
76 https://www.kernel.org/doc/man-pages/.
77
78
79
80 2017-09-15 ACOSH(3)