atanh - C math.h

C examples for math.h:atanh

Type

function

From

<cmath>
<ctgmath>
<math.h>

Description

Compute area hyperbolic tangent

Prototype

long double atanhl (long double x);
long double atanh (long double x);
     double atanh  (double x);
      float atanhf (float x);
      float atanh (float x);
     double asinh (T x);           

Parameters

Parameter Description
x Value to calculate hyperbolic tangent, in the interval [-1,+1].

Return Value

Area hyperbolic tangent of x.

Example

Demo Code

#include <stdio.h>
#include <math.h> /* tanh, atanh */

int main ()/*from  w  w  w.  j  av a2s .  c om*/
{
  double param = tanh(1);
  double result = atanh(param) ;
  printf ("The area hyperbolic tangent of %f is %f.\n", param, result);
  return 0;
}

Related Tutorials