. acosh

Name

acosh, acoshf, acoshl
- inverse hyperbolic cosine function

Library

libm.lib

Synopsis

  #include <math.h>
  double acosh (double x);
  float acoshf (float x);
  long double acoshl (long double x);

Return values

The acosh, acoshf, and acoshl functions return the inverse hyperbolic cosine of x. If the argument is less than 1, acosh returns an NaN.

Detailed description

The acosh and acoshf functions compute the inverse hyperbolic cosine of the real argument x. The function acoshl is an alias to the function acosh.

Examples

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

            

Output

acosh( 1.000000 ) = 0.0
acoshf(1.000000 ) = 0.0
acoshl(1.000000 ) = 0.0

            


See also

asinh, atanh, exp, math

Feedback

For additional information or queries on this page send feedback

© 2005-2007 Nokia

Top