mindspore.ops.asinh

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

Computes inverse hyperbolic sine of the input element-wise.

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

x (Tensor) – The input tensor of inverse hyperbolic sine 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([-5.0, 1.5, 3.0, 100.0]), mindspore.float32)
>>> output = ops.asinh(x)
>>> print(output)
[-2.3124382  1.1947632  1.8184465  5.298342 ]