C++ Programming/Code/Standard C Library/Functions/tanh
tanh
Syntax |
#include <cmath>
double tanh( double arg );
|
/*example*/
#include <stdio.h>
#include <math.h>
int main (){
double c, p;
c = log(2.0);
p = tanh (c);
printf ("The hyperbolic tangent of %lf is %lf.\n", c, p );
return 0;
}
The function tanh() returns the hyperbolic tangent of arg.
Category:Book:C++ Programming#Code/Standard%20C%20Library/Functions/tanh%20