I don't see Math.atan2() in the Math module documentation. There is a chance that it was added to the SDK and the documentation wasn't updated.
That said, if Math.atan2() was added in a recent release of the SDK (say 1.2.4) and the device you are running on has support for an earlier version of the SDK (say 1.2.1), you'll get symbol not found exceptions if you try to call it. You can use if (Toybox.Math has :atan2) to see if the functionality is there, or you could just write your own implementation based on Math.atan() until the functionality is documented supported on all recent device firmware.
Travis