mindspore.ops.acosh

mindspore.ops.acosh(x)[源代码]

Computes inverse hyperbolic cosine of the inputs element-wise.

\[out_i = \cosh^{-1}(input_i)\]

Warning

Given an input tensor x, the function computes inverse hyperbolic cosine of every element. Input range is [1, inf].

Parameters

x (Tensor) – The input tensor of inverse hyperbolic cosine function, its rank must be in [0, 7] inclusive.

Returns

Tensor, has the same shape and type as x.

Raises

TypeError – If x is not a Tensor.

Supported Platforms:

Ascend GPU CPU

Examples

>>> x = Tensor(np.array([1.0, 1.5, 3.0, 100.0]), mindspore.float32)
>>> output = ops.acosh(x)
>>> print(output)
[0.        0.9624237 1.7627472 5.298292 ]