I give Mathematica these commands:

$Assumptions = Element[x, Reals] && Element[y, Reals]
\[Theta] = ArcTan[x, y]
z = Exp[I \[Theta]]

I get

E^(-I Conjugate[ArcTan[x, y]])

How do I get Mathematica to recognize that ArcTan[x,y] is real?


Use ComplexExpand and Simplify, Note that $Assumptions is only used by functions that use the option Assumptions

$Assumptions = Element[x, Reals] && Element[y, Reals];
θ = ArcTan[x, y];
z = Exp[I θ];
Conjugate[z] // 
  ComplexExpand[#, TargetFunctions -> {Re, Im}] & // Simplify

(* (x - I y)/Sqrt[x^2 + y^2] *)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.