1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
3 .\" <mtk.manpages@gmail.com>
5 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
7 .\" References consulted:
8 .\" Linux libc source code
9 .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
11 .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
12 .\" Modified 2002-07-27 by Walter Harms
13 .\" (walter.harms@informatik.uni-oldenburg.de)
15 .TH ATANH 3 2021-03-22 "" "Linux Programmer's Manual"
17 atanh, atanhf, atanhl \- inverse hyperbolic tangent function
20 .RI ( libm ", " \-lm )
25 .BI "double atanh(double " x );
26 .BI "float atanhf(float " x );
27 .BI "long double atanhl(long double " x );
31 Feature Test Macro Requirements for glibc (see
32 .BR feature_test_macros (7)):
37 _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
38 || _XOPEN_SOURCE >= 500
39 .\" || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
40 || /* Since glibc 2.19: */ _DEFAULT_SOURCE
41 || /* Glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
47 _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
48 || /* Since glibc 2.19: */ _DEFAULT_SOURCE
49 || /* Glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
52 These functions calculate the inverse hyperbolic tangent of
54 that is the value whose hyperbolic tangent is
57 On success, these functions return the inverse hyperbolic tangent of
62 is a NaN, a NaN is returned.
66 is +0 (\-0), +0 (\-0) is returned.
72 and the functions return
77 respectively, with the mathematically correct sign.
79 If the absolute value of
82 a domain error occurs,
83 and a NaN is returned.
85 .\" POSIX.1-2001 documents an optional range error for subnormal x;
86 .\" glibc 2.8 does not do this.
90 for information on how to determine whether an error has occurred
91 when calling these functions.
93 The following errors can occur:
95 Domain error: \fIx\fP less than \-1 or greater than +1
99 An invalid floating-point exception
103 Pole error: \fIx\fP is +1 or \-1
108 A divide-by-zero floating-point exception
112 For an explanation of the terms used in this section, see
120 Interface Attribute Value
125 T} Thread safety MT-Safe
131 C99, POSIX.1-2001, POSIX.1-2008.
133 The variant returning
138 In glibc 2.9 and earlier,
139 .\" Bug: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6759
140 .\" This can be seen in sysdeps/ieee754/k_standard.c
141 when a pole error occurs,
145 instead of the POSIX-mandated
147 Since version 2.10, glibc does the right thing.