atan2(x,x)



-----maxima-bounces at math.utexas.edu wrote: -----

>I?didn't?mean?to?imply?you?should?do?this,?and?it?was?just?a?suggestion
>off?the?top?of?my?head?on?the?issues?you?raised.??I'm?not?even?sure?it's
>?anywhere?even?close?to?a?right?solution.

Given what we have to work with, it's a pretty good compromise; and it's
not hard to write either:

(%i2) atan2(sqrt(3)*x,x);
Is  x   positive, negative, or zero? pos;
(%o2) %pi/3

(%i3) atan2(sqrt(3)*x,x);
Is  x   positive, negative, or zero? neg;
(%o3) -(2*%pi)/3

(%i13) atan2(2008 * x,(1 + sqrt(5))*x);
Is  x   positive, negative, or zero? neg;
(%o13) atan(2008/(sqrt(5)+1))-%pi

Barton