Python/ref math atanh
来自菜鸟教程
<languages />
Python math.atanh()方法
例
查找不同数字的双曲反正切值:
#Import math Library
import math
#print the hyperbolic
arctangent of different numbers
print(math.atanh(0.59))
print(math.atanh(-0.12))
定义和用法
The
math.atanh()
方法返回数字的反双曲正切值。
注意:
传入的参数
math.atanh()
必须介于-0.99到0.99之间。
句法
math.atanh(x)
参数值
| 参数 | 描述 |
|---|---|
| x | 需要。-0.99至0.99之间的正数或负数。If
x 不是数字,则返回TypeError |
技术细节
| 返回值: | A
|
| Python版本: | 2.6 |