atan2
The four quadrant inverse tangent function.
Syntax
R = atan2(y,x)
Inputs
- y
- The opposite leg of a triangle.
- x
- The adjacent leg of a triangle.
Outputs
- R
- The angle result (in radians).
Examples
R = atan2(1,-2)
R = 2.67794504
R = atan2([2,-3;4,-5],[-3,4;5,-6])
R = [Matrix] 2 x 2
2.55359 -0.64350
0.67474 -2.44685