1ATANH(3P)                  POSIX Programmer's Manual                 ATANH(3P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       atanh, atanhf, atanhl — inverse hyperbolic tangent functions
13

SYNOPSIS

15       #include <math.h>
16
17       double atanh(double x);
18       float atanhf(float x);
19       long double atanhl(long double x);
20

DESCRIPTION

22       The functionality described on this reference page is aligned with  the
23       ISO C  standard.  Any  conflict between the requirements described here
24       and the ISO C standard is unintentional. This  volume  of  POSIX.1‐2017
25       defers to the ISO C standard.
26
27       These  functions  shall compute the inverse hyperbolic tangent of their
28       argument x.
29
30       An application wishing to check for error situations should  set  errno
31       to  zero  and  call  feclearexcept(FE_ALL_EXCEPT)  before calling these
32       functions. On return, if errno is non-zero or fetestexcept(FE_INVALID |
33       FE_DIVBYZERO  |  FE_OVERFLOW  | FE_UNDERFLOW) is non-zero, an error has
34       occurred.
35

RETURN VALUE

37       Upon successful completion, these functions shall  return  the  inverse
38       hyperbolic tangent of their argument.
39
40       If  x  is  ±1,  a  pole  error  shall occur, and atanh(), atanhf(), and
41       atanhl() shall return the value of the macro HUGE_VAL,  HUGE_VALF,  and
42       HUGE_VALL, respectively, with the same sign as the correct value of the
43       function.
44
45       For finite |x|>1, a domain error shall occur, and either a NaN (if sup‐
46       ported), or an implementation-defined value shall be returned.
47
48       If x is NaN, a NaN shall be returned.
49
50       If x is ±0, x shall be returned.
51
52       If x is ±Inf, a domain error shall occur, and a NaN shall be returned.
53
54       If x is subnormal, a range error may occur
55       and x should be returned.
56
57       If  x  is not returned, atanh(), atanhf(), and atanhl() shall return an
58       implementation-defined value no  greater  in  magnitude  than  DBL_MIN,
59       FLT_MIN, and LDBL_MIN, respectively.
60

ERRORS

62       These functions shall fail if:
63
64       Domain Error
65                   The x argument is finite and not in the range [-1,1], or is
66                   ±Inf.
67
68                   If the integer expression (math_errhandling  &  MATH_ERRNO)
69                   is  non-zero,  then  errno  shall be set to [EDOM].  If the
70                   integer expression (math_errhandling &  MATH_ERREXCEPT)  is
71                   non-zero,  then  the invalid floating-point exception shall
72                   be raised.
73
74       Pole Error  The x argument is ±1.
75
76                   If the integer expression (math_errhandling  &  MATH_ERRNO)
77                   is  non-zero,  then errno shall be set to [ERANGE].  If the
78                   integer expression (math_errhandling &  MATH_ERREXCEPT)  is
79                   non-zero,  then the divide-by-zero floating-point exception
80                   shall be raised.
81
82       These functions may fail if:
83
84       Range Error The value of x is subnormal.
85
86                   If the integer expression (math_errhandling  &  MATH_ERRNO)
87                   is  non-zero,  then errno shall be set to [ERANGE].  If the
88                   integer expression (math_errhandling &  MATH_ERREXCEPT)  is
89                   non-zero, then the underflow floating-point exception shall
90                   be raised.
91
92       The following sections are informative.
93

EXAMPLES

95       None.
96

APPLICATION USAGE

98       On  error,  the  expressions  (math_errhandling   &   MATH_ERRNO)   and
99       (math_errhandling  & MATH_ERREXCEPT) are independent of each other, but
100       at least one of them must be non-zero.
101

RATIONALE

103       None.
104

FUTURE DIRECTIONS

106       None.
107

SEE ALSO

109       feclearexcept(), fetestexcept(), tanh()
110
111       The Base Definitions volume of POSIX.1‐2017, Section 4.20, Treatment of
112       Error Conditions for Mathematical Functions, <math.h>
113
115       Portions  of  this text are reprinted and reproduced in electronic form
116       from IEEE Std 1003.1-2017, Standard for Information Technology --  Por‐
117       table  Operating System Interface (POSIX), The Open Group Base Specifi‐
118       cations Issue 7, 2018 Edition, Copyright (C) 2018 by the  Institute  of
119       Electrical  and  Electronics Engineers, Inc and The Open Group.  In the
120       event of any discrepancy between this version and the original IEEE and
121       The  Open Group Standard, the original IEEE and The Open Group Standard
122       is the referee document. The original Standard can be  obtained  online
123       at http://www.opengroup.org/unix/online.html .
124
125       Any  typographical  or  formatting  errors that appear in this page are
126       most likely to have been introduced during the conversion of the source
127       files  to  man page format. To report such errors, see https://www.ker
128       nel.org/doc/man-pages/reporting_bugs.html .
129
130
131
132IEEE/The Open Group                  2017                            ATANH(3P)
Impressum