Name

atanh, atanhf, atanhl
- inverse hyperbolic tangent function

Library

libm.lib

Synopsis

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

Return values

The atanh, atanhf, and atanhl functions return the inverse hyperbolic tangent of x if successful. If the argument has absolute value 1, an infinity is returned. If |x| > 1,an NaN is returned.

Detailed description

The atanh and atanhf functions compute the inverse hyperbolic tangent of the real argument x. The function atanhl is an alias to the function atanh.

Examples

#include <math.h>
int main( )
{
   double x = 1;
   double y = atanh( x );
   printf( "atanh(%f) = %f\n", x, y );
   y = atanhf( x );
   printf( "atanhf(%f) = %f\n", x, y );
   y = atanhl( x );
   printf( "atanhl(%f) = %f\n", x, y ); 
}


Output

atanh  ( 1.000000 ) = Inf
atanhf ( 1.000000 ) = Inf
atanhl ( 1.000000 ) = Inf



See also

acosh, asinh, exp, math

Feedback

For additional information or queries on this page send feedback

© 2008 Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user.

Top