mindspore.numpy.cosh
- mindspore.numpy.cosh(x, dtype=None)[源代码]
Hyperbolic cosine, element-wise.
说明
Numpy arguments out, where, casting, order, subok, signature, and extobj are not supported.
- 参数
x (Tensor) – Input tensor.
dtype (
mindspore.dtype
, optional) – Default:None
. Overrides the dtype of the output Tensor.
- 返回
Tensor or scalar. This is a scalar if x is a scalar.
- Supported Platforms:
Ascend
CPU
样例
>>> import mindspore.numpy as np >>> x = np.arange(5).astype('float32') >>> print(np.cosh(x)) [ 1. 1.5430807 3.7621956 10.067662 27.308233 ]