Atan2
Four-quadrant inverse tangent
Syntax
Atan2(y, x) |
x, y are scalars |
Return a scalar which is the four-quadrant inverse tangent function of x, where result is in radian unit and lies in the closed interval [-pi, pi] |
x, y are are matrices of same size/shape |
Return a matrix in which the element is the four-quadrant inverse tangent function of the element in x, where result is in radian unit and lies in the closed interval [-pi, pi] |
Examples
Input |
Output |
atan2(2, 5) |
|
atan2(1+i, 1-i) |
|
atan2([1+i, 0, 1-i], [-2, 2i, 1+2i]) |
|
atan2([-2.3, 1-3i; -2i, 5], [i, 0; 3+i, 2i]) |
See Also
Created with the Personal Edition of HelpNDoc: Full-featured Help generator