I want this function


Which outputs

Sin[Pi/2] == 1

I can either not evaluate, or evaluate but not at the same time, how do I combine them? My attempt would be something like


Except it doesn't work.

  • $\begingroup$ printevalexpr[expr_] := expr == ReleaseHold[expr] , then use it like printevalexpr[HoldForm[Sin[Pi/2]]] $\endgroup$ – flinty Jul 4 at 21:46

Your Answer

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

Browse other questions tagged or ask your own question.