mindspore.ops.arctan2

mindspore.ops.arctan2(input, other)[source]

Alias for mindspore.ops.atan2().

Supported Platforms:

Ascend GPU CPU

Examples

>>> import mindspore
>>> from mindspore import Tensor, ops
>>> import numpy as np
>>> x = Tensor(np.array([0, 1]), mindspore.float32)
>>> y = Tensor(np.array([1, 1]), mindspore.float32)
>>> output = ops.arctan2(x, y)
>>> print(output)
[0.        0.7853982]