Attend the Women in ML Symposium on December 7
Stay organized with collections Save and categorize content based on your preferences.

# tensorflow::ops::Atan2

#include <math_ops.h>

Computes arctangent of y/x element-wise, respecting signs of the arguments.

## Summary

This is the angle $$\theta \in [-\pi, \pi]$$ such that $x = r \cos(\theta)$ and $y = r \sin(\theta)$ where $$r = \sqrt{x^2 + y^2}$$.

For example:

x = [1., 1.] y = [1., -1.] print((tf.math.atan2(y,x) * (180 / np.pi)).numpy()) [ 45. -45.]

Args:

Returns:

• Output: The z tensor.

### Constructors and Destructors

Atan2(const ::tensorflow::Scope & scope, ::tensorflow::Input y, ::tensorflow::Input x)

### Public attributes

operation
Operation
z
::tensorflow::Output

### Public functions

node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const

## Public attributes

### operation

Operation operation

### z

::tensorflow::Output z

## Public functions

### Atan2

 Atan2(
const ::tensorflow::Scope & scope,
::tensorflow::Input y,
::tensorflow::Input x
)

### node

::tensorflow::Node * node() const

### operator::tensorflow::Input

 operator::tensorflow::Input() const

### operator::tensorflow::Output

 operator::tensorflow::Output() const
[{ "type": "thumb-down", "id": "missingTheInformationINeed", "label":"Missing the information I need" },{ "type": "thumb-down", "id": "tooComplicatedTooManySteps", "label":"Too complicated / too many steps" },{ "type": "thumb-down", "id": "outOfDate", "label":"Out of date" },{ "type": "thumb-down", "id": "samplesCodeIssue", "label":"Samples / code issue" },{ "type": "thumb-down", "id": "otherDown", "label":"Other" }]
[{ "type": "thumb-up", "id": "easyToUnderstand", "label":"Easy to understand" },{ "type": "thumb-up", "id": "solvedMyProblem", "label":"Solved my problem" },{ "type": "thumb-up", "id": "otherUp", "label":"Other" }]