2
$\begingroup$

I have a function:

$\bar{u}:=u[t,x,y,z]$ (1)

How do I prevent it from expanding and substituting in instructions like those following:

$\partial _t {\bar u}$ (2)

Thanks in advance

EDIT: Mathematica expressions as asked:

OverBar[u]:=u[t,x,y,z]

D[ OverBar[u] , t]
$\endgroup$
  • 2
    $\begingroup$ Please include Mathematica code, not latex expressions. Have you looked at Hold, HoldForm and related functions or Defer? $\endgroup$ – rm -rf Sep 14 '12 at 7:39
  • 3
    $\begingroup$ I think this question needs more context. $\endgroup$ – Mr.Wizard Sep 14 '12 at 7:50
5
$\begingroup$

If you would like to display the expression without evaluation use HoldForm

HoldForm@D[OverBar[u], t]
$\endgroup$

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.