C++ 编程/代码/标准 C 库/函数/tanh
外观
语法 |
#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;
}
函数 tanh() 返回arg的双曲正切值。