Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*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

Substitution

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

HoldTemporary may do the trick for you.

http://library.wolfram.com/infocenter/MathSource/705/

Hold or HoldForm might also do it:

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

Bobby

From: Bruce W. Colletti (bcolletti at compuserve.com)
To: mathgroup at smc.vnet.net
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.

Thankx.

Bruce


  • 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