4
$\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
  • 2
    $\begingroup$ Please include Mathematica code, not latex expressions. Have you looked at Hold, HoldForm and related functions or Defer? $\endgroup$
    – rm -rf
    Commented Sep 14, 2012 at 7:39
  • 3
    $\begingroup$ I think this question needs more context. $\endgroup$
    – Mr.Wizard
    Commented Sep 14, 2012 at 7:50

1 Answer 1

6
$\begingroup$

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.