I need an
ArcTan[x,y] function that is continuous in (0,2 π)
For the standard ArcTan function:
Assuming[-π < x <= π, FullSimplify[ArcTan[Cos[x], Sin[x]]]]
x, as expected.
MyArcTan[C,S]:=π + ArcTan[-C,-S]
does the job numerically, yielding x when
0 < x < 2 π but:
Assuming[0 < x < 2 π, w = FullSimplify[MyArcTan[Cos[x], Sin[x]]]]
π + ArcTan[-Cos[x], -Sin[x]] instead of
Is there something simple I am missing? Any ideas on how to do this? Thanks for any help.