Python/ref math cosh
来自菜鸟教程
<languages />
Python math.cosh()方法
例
查找不同数字的双曲余弦值:
# Import math Library
import math
# Return the hyperbolic cosine of
different numbers
print (math.cosh(1))
print (math.cosh(8.90))
print (math.cosh(0))
print (math.cosh(1.52))
定义和用法
The
math.cosh()
方法返回数字的双曲余弦值(等于(exp(number)+ exp(-number))/ 2)。
句法
math.cosh(x)
参数值
| 参数 | 描述 |
|---|---|
| x | 需要。查找双曲余弦的数字。如果该值不是数字,则返回TypeError |
技术细节
| 返回值: | A
|
| Python版本: | 1.4 |