On 7/22/07, sen1 at math.msu.edu <sen1 at math.msu.edu> wrote:
> > if x > 0 then %pi/4 elseif x < 0 then 5*%pi/4 else 'atan2(x, x)
>
> Why not conform to maple and use the principle value of the argument
> between %-pi and %pi as in
>
> if x > 0 then %pi/4 elseif x < 0 then -3*%pi/4 else 'atan2(x, x)
I agree that putting the result into the range (-%pi, %pi] is a good idea,
although whether that's the convention followed by Maple
doesn't seem too important.
best
Robert