1ACOSH(3)                   Linux Programmer's Manual                  ACOSH(3)
2
3
4

NAME

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

SYNOPSIS

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 <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
24
25       acoshf(), acoshl():
26           _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
27               || /* Since glibc 2.19: */ _DEFAULT_SOURCE
28               || /* Glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
29

DESCRIPTION

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

RETURN VALUE

35       On success, these functions return the inverse hyperbolic cosine of x.
36
37       If x is a NaN, a NaN is returned.
38
39       If x is +1, +0 is returned.
40
41       If x is positive infinity, positive infinity is returned.
42
43       If x is less than 1, a domain error occurs, and the functions return  a
44       NaN.
45

ERRORS

47       See  math_error(7) for information on how to determine whether an error
48       has occurred when calling these functions.
49
50       The following errors can occur:
51
52       Domain error: x is less than 1
53              errno is set  to  EDOM.   An  invalid  floating-point  exception
54              (FE_INVALID) is raised.
55

ATTRIBUTES

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

CONFORMING TO

67       C99, POSIX.1-2001, POSIX.1-2008.
68
69       The variant returning double also conforms to SVr4, 4.3BSD.
70

SEE ALSO

72       asinh(3), atanh(3), cacosh(3), cosh(3), sinh(3), tanh(3)
73

COLOPHON

75       This page is part of release 5.12 of the Linux  man-pages  project.   A
76       description  of  the project, information about reporting bugs, and the
77       latest    version    of    this    page,    can     be     found     at
78       https://www.kernel.org/doc/man-pages/.
79
80
81
82                                  2021-03-22                          ACOSH(3)
Impressum