I have a related query here. For any box B that straddles the branch
cut, peeking no matter how slightly into both the y<0 and y>=0
regions for some x<0, we get
atan2([ylo,yhi],[xlo,xhi]) = [-Pi,Pi].
If what we REALLY want is "an interval extension of the point
function that is the Principal Value atan2 as above" then that is
fine. But for applications to do with "winding" (continuous change of
angle on a path that loops round the origin) one would like an atan2
that is about the incremental, continuous, change in angle across box
B -- and is not always limited to (-Pi,Pi].
Has anyone got a suitable definition? Arnold, it looks the sort of
thing for you.