Skip to content
Discussion options

You must be logged in to vote

Thanks for the question!

Operationally, the issue is that the gradient of atan2(x, y) contains the term x / (x ** 2 + y ** 2), so if x and y have zeros in the same location, the gradient will be NaN.

More conceptually, atan2 is not continuous at the point $(0, 0)$, so its derivative at that point is ill-defined.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Peter-Vincent
Comment options

Answer selected by Peter-Vincent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants