atanh()

Computes the inverse hyperbolic tangent.

  #include <math.h>
  
  double atanh(double x);
  
  float atanhf(float);
  
  long double atanhl(long double);    
Parameter

x

A floating-point value.

Remarks

These functions return the hyperbolic arcsine of the argument x. If x is greater than 1 or less than -1, these functions set set errno to EDOM and

  fpclassify(atanh(x))  
  

returns FP_NAN.

This facility may not be available on configurations of the EWL that run on platforms that do not have floating-point math capabilities.

Listing: Example of atanh() Usage

#include <math.h>

#include <stdio.h>

int main(void)

{

double c = 0.5;

printf("The arc hyperbolic tan of %f is %f.\n", c, atanh(c));

return 0;

}

Output:

The arc hyperbolic tan of 0.500000 is 0.549306.