atanh function calculates the arc hyperbolic tangent

Syntax

C atanh functions have the following syntax.

  • float atanhf(float arg);
  • double atanh(double arg);
  • long double atanhl(long double arg);

C atanh functions are from header file math.h.

Description

C atanh functions returns the arc hyperbolic tangent of arg. The argument must be in the range -1 to 1.

Example

The following code shows how to calculate the arc hyperbolic tangent.


#include <math.h>
#include <stdio.h>
//from ww w.j  a  va2 s.c  o m
int main(void)
{
  printf("%f.\n",  atanh(12));
  return 0;
}

The code above generates the following result.





















Home »
  C Language »
    Function Reference »




assert.h
ctype.h
math.h
setjmp.h
signal.h
stdio.h
stdlib.h
string.h
time.h
wctype.h