0
$\begingroup$

I have this expression:

Lx = (ℏ/I)*(-Sqrt[15/(8*π)])*(-Sin[ϕ]*(Cos[2*θ]*E^(I*ϕ)) -
  Cos[ϕ]*Cot[θ]*(I*Cos[θ]*Sin[θ]*E^(I*ϕ)))

and I don't want Mathematica to do anything to simplify it. I want to see it as input in the exact way I've written it. How can I do this?

$\endgroup$
1
$\begingroup$

Try the following maybe.

HoldForm[(\[HBar]/
I)*(-Sqrt[
 15/(8*\[Pi])])*(-Sin[\[Phi]]*(Cos[2*\[Theta]]*E^(I*\[Phi])) - 
Cos[\[Phi]]*
 Cot[\[Theta]]*(I*Cos[\[Theta]]*Sin[\[Theta]]*E^(I*\[Phi])))]
$\endgroup$
  • $\begingroup$ Oh wow, I was doubtful that such a command even existed, but that worked. Thanks!! $\endgroup$ – whatwhatwhat Nov 13 '16 at 3:24
  • 1
    $\begingroup$ @whatwhatwhat also you can use simply Hold[...] for similar results. Make sure to mark as accept if you like the answer. $\endgroup$ – William Nov 13 '16 at 3:25

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.