# Mathematica:How can I acclaim a variable is real in a complex function

 Sci Advisor HW Helper P: 3,684 You could do f[x_]:=Exp[I*Re[x]] so it takes only the real part of x (which doesn't change it, of course, when x is real).