Python/ref cmath cosh

来自菜鸟教程
机器人讨论 | 贡献2020年10月29日 (四) 08:49的版本 (机器人:添加分类Python基础教程
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至:导航、​搜索

<languages />

Python cmath.cosh()方法

❮cmath方法

查找复数的双曲余弦:

    #import cmath for complex number operations 
import cmath

#find 
    the hyperbolic cosine of a complex number
print (cmath.cosh(2 + 3j)) 

定义和用法

The cmath.cosh() 方法返回复数的双曲余弦值。

句法

    cmath.cosh(x)
  

参数值

参数 描述
x 需要。找到一个双曲余弦的数字

技术细节

返回值: A

complex 值,表示复数的双曲余弦值

Python版本: 1.5

❮cmath方法