Python/ref cmath tanh
来自菜鸟教程
<languages />
Python cmath.tanh()方法
例
查找复数的双曲正切:
#Import cmath Library
import cmath
#Return the hyperbolic tangent
of a complex number
print (cmath.tanh(2 + 3j))
定义和用法
The
cmath.tanh()
方法返回复数的双曲正切。
句法
cmath.tanh(x)
参数值
| 参数 | 描述 |
|---|---|
| x | 需要。查找双曲正切的数字。如果该值不是数字,则返回TypeError |
技术细节
| 返回值: | A
|
| Python版本: | 1.5 |