mindspore.numpy.arctan¶
-
mindspore.numpy.
arctan
(x, dtype=None)[source]¶ Trigonometric inverse tangent, element-wise.
The inverse of tan, so that if \(y = tan(x)\) then \(x = arctan(y)\).
Note
Numpy arguments out, where, casting, order, subok, signature, and extobj are not supported.
- Parameters
x (Tensor) – Input tensor.
dtype (
mindspore.dtype
, optional) – Default:None
. Overrides the dtype of the output Tensor.
- Returns
Tensor or scalar. This is a scalar if x is a scalar.
- Supported Platforms:
Ascend
GPU
CPU
Examples
>>> import mindspore.numpy as np >>> x = np.arange(5).astype('float32') >>> print(np.tan(x)) [ 0. 1.5574077 -2.1850398 -0.14254655 1.1578213 ]