mindspore.numpy.arcsin
- mindspore.numpy.arcsin(x, dtype=None)[源代码]
Inverse sine, element-wise.
说明
Numpy arguments out, where, casting, order, subok, signature, and extobj are not supported.
- 参数
x (Tensor) – Input tensor. y-coordinate on the unit circle.
dtype (
mindspore.dtype
, optional) – Default:None
. Overrides the dtype of the output Tensor.
- 返回
Output Tensor.
- 异常
TypeError – If the input is not a tensor.
- Supported Platforms:
Ascend
GPU
CPU
样例
>>> import mindspore.numpy as np >>> x = np.asarray([1, -1], np.float32) >>> output = np.arcsin(x) >>> print(output) [ 1.5707964 -1.5707964]