Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive


  • To: mathgroup at
  • Subject: [mg46800] Substitution
  • From: DrBob <drbob at>
  • Date: Tue, 9 Mar 2004 04:30:43 -0500 (EST)
  • Sender: owner-wri-mathgroup at

HoldTemporary may do the trick for you.

Hold or HoldForm might also do it:

p = a*x + b*x;
p + HoldForm[Subscript[p, D]]


From: Bruce W. Colletti (bcolletti at
To: mathgroup at
Subject: [mg46800] Substitution

This is the only article in this thread 	
View: Original Format	

How to make the variable Subscript[p,D] wholly unrelated to variable p?

For instance, the notebook...

p = a x + b x;
p + Subscript[p,D]

...produces a x + b x + Subscript[ax+bx,D].

But I want p + Subscript[p,D] and thereafter, to freely use
Subscript[p,D] without it being affected by the p-value.  Symbolizing
Subscript[p,D] didn't work.



  • Prev by Date: append to a file
  • Next by Date: Re: Problem with Mathematica driving me nuts
  • Previous by thread: Substitution
  • Next by thread: Re: Substitution