Python atan2 function


Python atan2(y,x) function returns atan(y/x). It's a method of math module.

>>> import math
>>> math.atan2(1,2)
0.4636476090008061

>>> math.atan2(math.pi, 1)
1.2626272556789118

>>> math.atan2(0,1)
0.0