]>
Commit | Line | Data |
---|---|---|
a1eaacb1 | 1 | '\" t |
fea681da | 2 | .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) |
1e2209dd MK |
3 | .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk |
4 | .\" <mtk.manpages@gmail.com> | |
fea681da | 5 | .\" |
5fbde956 | 6 | .\" SPDX-License-Identifier: Linux-man-pages-copyleft |
fea681da MK |
7 | .\" |
8 | .\" References consulted: | |
9 | .\" Linux libc source code | |
10 | .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) | |
11 | .\" 386BSD man pages | |
12 | .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu) | |
13 | .\" Modified 2002-07-25 by Walter Harms | |
14 | .\" (walter.harms@informatik.uni-oldenburg.de) | |
15 | .\" | |
4c1c5274 | 16 | .TH acosh 3 (date) "Linux man-pages (unreleased)" |
fea681da MK |
17 | .SH NAME |
18 | acosh, acoshf, acoshl \- inverse hyperbolic cosine function | |
2af19291 AC |
19 | .SH LIBRARY |
20 | Math library | |
8fc3b2cf | 21 | .RI ( libm ", " \-lm ) |
fea681da MK |
22 | .SH SYNOPSIS |
23 | .nf | |
24 | .B #include <math.h> | |
68e4db0a | 25 | .PP |
fea681da | 26 | .BI "double acosh(double " x ); |
fea681da | 27 | .BI "float acoshf(float " x ); |
fea681da | 28 | .BI "long double acoshl(long double " x ); |
68e4db0a | 29 | .PP |
fea681da | 30 | .fi |
d39ad78f | 31 | .RS -4 |
cc4615cc MK |
32 | Feature Test Macro Requirements for glibc (see |
33 | .BR feature_test_macros (7)): | |
d39ad78f | 34 | .RE |
68e4db0a | 35 | .PP |
1e2209dd | 36 | .BR acosh (): |
9d2adbae | 37 | .nf |
5c10d2c5 MK |
38 | _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L |
39 | || _XOPEN_SOURCE >= 500 | |
40 | .\" || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED | |
9d2adbae | 41 | || /* Since glibc 2.19: */ _DEFAULT_SOURCE |
75c018a1 | 42 | || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE |
9d2adbae | 43 | .fi |
98c9347c | 44 | .PP |
cc4615cc MK |
45 | .BR acoshf (), |
46 | .BR acoshl (): | |
9d2adbae | 47 | .nf |
5c10d2c5 | 48 | _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L |
9d2adbae | 49 | || /* Since glibc 2.19: */ _DEFAULT_SOURCE |
75c018a1 | 50 | || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE |
9d2adbae | 51 | .fi |
fea681da | 52 | .SH DESCRIPTION |
5600f73a | 53 | These functions calculate the inverse hyperbolic cosine of |
022671eb MK |
54 | .IR x ; |
55 | that is the value whose hyperbolic cosine is | |
56 | .IR x . | |
47297adb | 57 | .SH RETURN VALUE |
1e2209dd MK |
58 | On success, these functions return the inverse hyperbolic cosine of |
59 | .IR x . | |
847e0d88 | 60 | .PP |
1e2209dd MK |
61 | If |
62 | .I x | |
63 | is a NaN, a NaN is returned. | |
847e0d88 | 64 | .PP |
1e2209dd MK |
65 | If |
66 | .I x | |
67 | is +1, +0 is returned. | |
847e0d88 | 68 | .PP |
1e2209dd MK |
69 | If |
70 | .I x | |
71 | is positive infinity, positive infinity is returned. | |
847e0d88 | 72 | .PP |
1e2209dd MK |
73 | If |
74 | .I x | |
75 | is less than 1, | |
efe294cb | 76 | a domain error occurs, |
1e2209dd | 77 | and the functions return a NaN. |
fea681da | 78 | .SH ERRORS |
1e2209dd MK |
79 | See |
80 | .BR math_error (7) | |
81 | for information on how to determine whether an error has occurred | |
82 | when calling these functions. | |
83 | .PP | |
84 | The following errors can occur: | |
fea681da | 85 | .TP |
1e2209dd MK |
86 | Domain error: \fIx\fP is less than 1 |
87 | .I errno | |
88 | is set to | |
89 | .BR EDOM . | |
90 | An invalid floating-point exception | |
91 | .RB ( FE_INVALID ) | |
92 | is raised. | |
fac554f2 MS |
93 | .SH ATTRIBUTES |
94 | For an explanation of the terms used in this section, see | |
95 | .BR attributes (7). | |
96 | .TS | |
97 | allbox; | |
c466875e | 98 | lbx lb lb |
fac554f2 MS |
99 | l l l. |
100 | Interface Attribute Value | |
101 | T{ | |
9e54434e BR |
102 | .na |
103 | .nh | |
fac554f2 MS |
104 | .BR acosh (), |
105 | .BR acoshf (), | |
106 | .BR acoshl () | |
107 | T} Thread safety MT-Safe | |
108 | .TE | |
c466875e | 109 | .sp 1 |
3113c7f3 | 110 | .SH STANDARDS |
4131356c AC |
111 | C11, POSIX.1-2008. |
112 | .SH HISTORY | |
113 | C99, POSIX.1-2001. | |
847e0d88 | 114 | .PP |
1e2209dd MK |
115 | The variant returning |
116 | .I double | |
117 | also conforms to | |
7cada58c | 118 | SVr4, 4.3BSD. |
47297adb | 119 | .SH SEE ALSO |
fea681da MK |
120 | .BR asinh (3), |
121 | .BR atanh (3), | |
36268806 | 122 | .BR cacosh (3), |
fea681da MK |
123 | .BR cosh (3), |
124 | .BR sinh (3), | |
125 | .BR tanh (3) |