home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / msdos / c / djgpp / libsrc / m / tanh.c < prev   
Encoding:
C/C++ Source or Header  |  1991-03-10  |  103 b   |  8 lines

  1. #include <math.h>
  2.  
  3. double tanh(double x)
  4. {
  5.   return (exp(x) - exp(-x)) / (exp(x) + exp(-x));
  6. }
  7.  
  8.