CodeCogs - An iteractive open source Numerical library Welcome... Login
CodeCogs
shopping cart
OSXWindowsLinux
Search CodeCogs
Numerical Pages

Valid RSS

CMath.h

cosh

About | FAQ | Contact
About FAQ Contact

Hyperbolic cosine function

viewed 11631 times


+View other versions (4)
Contents -

Interface

#include <math.h>
double cosh (double x)
long coshl (long double x)
float coshf (float x)

Description

The cosh function computes the hyperbolic cosine of x, which is defined through:
Example 1:
#include <stdio.h>
#include <math.h>
 
int main(void)
{
  double x = 0.5;
  double result = cosh(x);
  printf("The hyperbolic cosine of %lf is %lf\n", x, result);
  return 0;
}

Output:
The hyperbolic cosine of 0.500000 is 1.127626

Special Values

cosh ( ±0 ) returns 1.
cosh ( ±∞ ) returns +∞.

See Also

acos, asin, atan, atan2, cos, sin, sinh, tan, tanh

Standards

The cosh function conforms to ISO/IEC 9899:1999(E).
Last Modified: 2009-11-01 08:45:35     Page Rendered: 2010-03-15 02:51:14

Page Comments

Format Excel Equations

  You must login to leave a messge


Valid CSS!   Valid XHTML 1.0 Transitional