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
which Mathematica "simplifies" to
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.
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. Evaluating
Re[Exp[I*x]] // Simplifydoesn't change it either. $\endgroup$
Re[Exp[I*x]]in a new notebook, I get the above expression. $\endgroup$
HoldFormmight 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 form
expression //SomeForm? $\endgroup$