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

NAME

6       acosh, acoshf, acoshl - inverse hyperbolic cosine function
7

LIBRARY

9       Math library (libm, -lm)
10

SYNOPSIS

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

DESCRIPTION

32       These  functions  calculate the inverse hyperbolic cosine of x; that is
33       the value whose hyperbolic cosine is x.
34

RETURN VALUE

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

ERRORS

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

ATTRIBUTES

58       For  an  explanation  of  the  terms  used  in  this  section,  see at‐
59       tributes(7).
60
61       ┌────────────────────────────────────────────┬───────────────┬─────────┐
62Interface                                   Attribute     Value   
63       ├────────────────────────────────────────────┼───────────────┼─────────┤
64acosh(), acoshf(), acoshl()                 │ Thread safety │ MT-Safe │
65       └────────────────────────────────────────────┴───────────────┴─────────┘
66

STANDARDS

68       C11, POSIX.1-2008.
69

HISTORY

71       C99, POSIX.1-2001.
72
73       The variant returning double also conforms to SVr4, 4.3BSD.
74

SEE ALSO

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)
Impressum