home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / gnu / djgpp / libsrc / m / src / cosh.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-20  |  122 b   |  8 lines

  1. #include <math.h>
  2.  
  3. double cosh(double x)
  4. {
  5.   const double ebig = exp(fabs(x));
  6.   return (ebig + 1.0/ebig) / 2.0;
  7. }
  8.