Yes, this is the behavior you should expect. The defined range for the arc tangent is (- \frac{\pi}{2}, \frac{\pi}{2}). Also, the tangent function goes to infinity at \frac{\pi}{2}, so if you implement this in software you'd need to do a check that if E is close enough to 180 degrees, set the...