MathGroup Archive 2004

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

Search the Archive

Re: Substitution


Hi,

it works well for me
<< Utilities`Notation`

\!\(\*
  RowBox[{"Symbolize", "[", 
    TagBox[\(p\_D\),
      NotationBoxTag,
      TagStyle->"NotationTemplateStyle"], "]"}]\)

p = a x + b x;

and

\!\(p + p\_D\)

gives
\!\(p\_D + a\ x + b\ x\)

Regards
  Jens


"Bruce W. Colletti" wrote:
> 
> 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: Re: Problem with Mathematica driving me nuts
  • Next by Date: RE: Problem with Mathematica driving me nuts
  • Previous by thread: Substitution
  • Next by thread: Problem with Mathematica driving me nuts