Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Four-quadrant inverse tangent

`P = atan2(Y,X)`

`P = atan2(`

returns
the four-quadrant
inverse tangent (tan`Y`

,`X`

)^{-1}) of `Y`

and `X`

,
which must be real.