]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/acosh.3
man*/: ffix (un-bracket tables)
[thirdparty/man-pages.git] / man3 / acosh.3
CommitLineData
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
18acosh, acoshf, acoshl \- inverse hyperbolic cosine function
2af19291
AC
19.SH LIBRARY
20Math 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
32Feature 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 53These functions calculate the inverse hyperbolic cosine of
022671eb
MK
54.IR x ;
55that is the value whose hyperbolic cosine is
56.IR x .
47297adb 57.SH RETURN VALUE
1e2209dd
MK
58On success, these functions return the inverse hyperbolic cosine of
59.IR x .
847e0d88 60.PP
1e2209dd
MK
61If
62.I x
63is a NaN, a NaN is returned.
847e0d88 64.PP
1e2209dd
MK
65If
66.I x
67is +1, +0 is returned.
847e0d88 68.PP
1e2209dd
MK
69If
70.I x
71is positive infinity, positive infinity is returned.
847e0d88 72.PP
1e2209dd
MK
73If
74.I x
75is less than 1,
efe294cb 76a domain error occurs,
1e2209dd 77and the functions return a NaN.
fea681da 78.SH ERRORS
1e2209dd
MK
79See
80.BR math_error (7)
81for information on how to determine whether an error has occurred
82when calling these functions.
83.PP
84The following errors can occur:
fea681da 85.TP
1e2209dd
MK
86Domain error: \fIx\fP is less than 1
87.I errno
88is set to
89.BR EDOM .
90An invalid floating-point exception
91.RB ( FE_INVALID )
92is raised.
fac554f2
MS
93.SH ATTRIBUTES
94For an explanation of the terms used in this section, see
95.BR attributes (7).
96.TS
97allbox;
c466875e 98lbx lb lb
fac554f2
MS
99l l l.
100Interface Attribute Value
101T{
9e54434e
BR
102.na
103.nh
fac554f2
MS
104.BR acosh (),
105.BR acoshf (),
106.BR acoshl ()
107T} Thread safety MT-Safe
108.TE
c466875e 109.sp 1
3113c7f3 110.SH STANDARDS
4131356c
AC
111C11, POSIX.1-2008.
112.SH HISTORY
113C99, POSIX.1-2001.
847e0d88 114.PP
1e2209dd
MK
115The variant returning
116.I double
117also conforms to
7cada58c 118SVr4, 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)