.. highlightlang:: us .. index:: atan2 .. _atan2: atan2 ===== .. us.tag atan ENGLISH :ref:`atan2` calculates the four-quadrant inverse tangent. .. function:: r = atan2(y, x) .. us.return **Return Value** *r* is the arctangent of *y*/*x* in the range [−π, π]. .. us.params **Parameters** .. uparam:: y *y* is a real matrix. The size must be identical as *x*. .. uparam:: x *x* is a real matrix. .. us.example **Example** :: * atan2(2,1) 1.1071 .. seealso:: :ref:`overview-mathematic`, :ref:`atan`, :ref:`tan` :sub:`id-1338511`