atan2

ivy.atan2(x1, x2, f=None)[source]

Computes element-wise arc tangent of x1/x2 choosing the quadrant correctly.

Parameters
  • x1 (array) – y-coordinates.

  • x2 (array) – x-coordinates. If x1.shape != x2.shape, they must be broadcastable to a common shape (which becomes the shape of the output).

  • f (ml_framework, optional) – Machine learning framework. Inferred from inputs if None.

Returns

Array of angles in radians, in the range [-pi, pi].


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty