tanhf(3)

tanhf3

Hyperbolic tangent functions

Part of tanh(3).

Usage

#include <math.h>

double

tanh(double x);

float

tanhf(float x);

long double

tanhl(long double x);

Library

Math Library (libm, -lm)

Overview

The tanh(), tanhf(), and tanhl() functions compute the hyperbolic tangent of x. For a discussion of error due to roundoff, see math(3).

Return values

The tanh(), tanhf(), and the tanhl() functions return the hyperbolic tangent value.

Releases

83 releases since FreeBSD 2.2.2-RELEASE; the text changed 43 times.

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

Standards

The tanh() function conforms to ISO/IEC 9899:1990 (“ISO C90”).

History

The tanh() function first appeared in Version 7 AT&T UNIX.

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