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的雙曲正切值。