atanh(3)

atanh3

Inverse hyperbolic tangent functions

Usage

#include <math.h>

double

atanh(double x);

float

atanhf(float x);

long double

atanhl(long double x);

Library

Math Library (libm, -lm)

Overview

The atanh(), atanhf(), and atanhl() functions compute the inverse hyperbolic tangent of the real argument x. For a discussion of error due to roundoff, see math(3).

Return values

These functions return the inverse hyperbolic tangent of x if successful. If the argument has absolute value 1, a divide-by-zero exception is raised and an infinity is returned. If |x| > 1, an invalid exception is raised and an is returned.

Releases

87 releases since FreeBSD 2.0.5-RELEASE; the text changed 47 times.

  1. 2.0.5
  2. 2.1.5–2.1.7.1
  3. 2.2.2–2.2.8
  4. 2.2.9
  5. 3.0–3.2
  6. 3.3–3.5.1
  7. 4.0–4.3
  8. 4.4
  9. 4.5–4.11
  10. 5.0–5.2.1
  11. 5.3
  12. 5.4–5.5
  13. 6.0–6.2
  14. 6.3
  15. 6.4
  16. 7.0
  17. 7.1
  18. 7.2
  19. 7.3
  20. 7.4
  21. 8.0
  22. 8.1
  23. 8.2
  24. 8.3
  25. 8.4
  26. 9.0
  27. 9.1
  28. 9.2
  29. 9.3
  30. 10.0
  31. 10.1
  32. 10.2
  33. 10.3
  34. 10.4
  35. 11.0
  36. 11.1
  37. 11.2
  38. 11.3
  39. 11.4
  40. 12.0
  41. 12.1
  42. 12.2
  43. 12.3
  44. 12.4
  45. 13.0
  46. 13.1–13.2
  47. 13.3–14.5
  48. 15.0–16.0

History

The atanh(), atanhf(), and atanhl() functions appeared in 4.3BSD, FreeBSD 2.0, and FreeBSD 10.0, respectively.

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.