Arc Tangent (2 argument version)

Syntax


theta = atan2(y, x)

Description


Computes the angle theta (radians) associated with the transformation of rectangular coordinates (x, y) to polar coordinates (r, theta).

Example


theta = atan2(1.45, -3.87)