Python math 模块
Python math.atanh(x) 返回 x 的反双曲正切值。
math.atanh(x) 的参数介于 -0.99 到 0.99 之间。
Python 版本: 2.6
语法
math.atanh() 方法语法如下:
math.atanh(x)
参数说明
返回值
返回一个浮点数,表示 x 的反双曲正切值。
实例
以下实例返回指定数字的双曲正切值:
输出结果:
0.6776660677579618 -0.12058102840844402