The atan function simply computes the inverse tangens of a value. The atan2 function takes two values (y and x). This function is used to convert from cartesian coordinates (x,y) to polar coordinates (r,phi), where phi=atan(y,x).
The atan function simply computes the inverse tangens of a value. The atan2 function takes two values (y and x). This function is used to convert from cartesian coordinates (x,y) to polar coordinates (r,phi), where phi=atan(y,x).