cosh

Computes the hyperbolic cosine of the argument

Local Servers:nonblocking
Remote Servers:N/A
Classification:ANSI
Service:Mathematical Computation

Syntax

  #include <math.h>  
   
  double cosh  ( 
     double   x);
  

Parameters

x
(IN) Specifies the argument whose hyperbolic cosine is to be computed.

Return Values

The cosh function returns the hyperbolic cosine value. When the argument is outside the permissible range, errno is set and matherr is called.

Remarks

The cosh function computes the hyperbolic cosine of x. A range error occurs if the magnitude of x is too large.

See Also

matherr, sinh, tanh

Example

  #include <math.h>  
  #include <stdio.h>  
   
  main ()  
  {  
     printf ("%f\n", cosh (.5) );  
  }
  

produces the following:

  1.127626