跳轉到內容

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

相關主題
acos - asin - atan - atan2 - cos - cosh - sin - sinh - tan
華夏公益教科書