simplification of atan2



re atan2(x,x):

On 7/21/07, Robert Dodier <robert.dodier at gmail.com> wrote:
>
> Something like
> if x > 0 then %pi/4 elseif x < 0 then 5*%pi/4 else 'atan2(x, x)
> could be useful here.
>

I am not sure what you are suggesting here.  Are you suggesting that
atan2(q,q) simplify to the expression "if q>0 then etc.etc."? or are you
suggesting that if q>0 then it should simplify to %pi/4 and if q<0 then it
should simplify to 5*%pi/4 otherwise it should remain as atan2(q,q)?  If the
former, I don't see the point.  If the latter, that is what it does already.

                -s