主页
C 语言
C Math tanh() 函数
demo_ref_math_tanh
运行 ❯
×
更改方向
保存代码
更改主题
#include
#include
int main() { printf("%f\n", tanh(3)); printf("%f\n", tanh(-3)); printf("%f\n", tanh(0)); printf("%f\n", tanh(1)); return 0; }
0.995055
-0.995055
0.000000
0.761594