主页
Python
Python math.tanh() 方法
demo_ref_math_tanh
运行 ❯
×
更改方向
保存代码
更改主题
# Import math Library import math # Return the hyperbolic tangent of different numbers print(math.tanh(8)) print(math.tanh(1)) print(math.tanh(-6.2))
0.9999997749296758
0.7615941559557649
-0.9999917628565104