While there is this question with a very similar title, it does not answer my question, which is:
I have part of an input, in my case
Re[Exp[I*x]]
which Mathematica "simplifies" to
Cos[Re[x]]/E^Im[x]
So I am wondering how to tell Mathematica to leave this expression, whether it's alone or part of a longer formula, in its previous form rather than to change it as shown here.
Update
I should probably add I am still running version 6, hoping this is not causing the issue.
Re[Exp[I*x]]
does not automatically simplify to anything. Evaluating it leaves it unchanged. EvaluatingRe[Exp[I*x]] // Simplify
doesn't change it either. $\endgroup$Re[Exp[I*x]]
in a new notebook, I get the above expression. $\endgroup$HoldForm
might work but it seems be a little tricky to use in this case if I want to use the expression in a longer formula e.g. involving slots (#
) where the evaluation must not be stopped. I was hoping there would be some solution of the formexpression //SomeForm
? $\endgroup$