MathGroup Archive 2007

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

Search the Archive

Re: subscripted local variables?


Hi Yaroslav,

Mathematica doesn't treat Subscript[x, a] as a symbol. There are
various ways to get around this. If you'd like for every SubscriptBox
to be interpreted like a symbol, then you could try my
SubscriptSymbols package, which is available at
http://andrew.j.moylan.googlepages.com/mathematica. Be sure to read
the warning there about auto-generated package files in Mathematica 6.

Andrew


On Aug 27, 1:42 pm, Yaroslav Bulatov <yarosla... at gmail.com> wrote:
> What is the recommended way of declaring subscripted local variables?
>
> For instance the following is an error in Mathematica 6.0
> Module[{Subscript[x, a]}, Subscript[x, a] = 5]




  • Prev by Date: Re: fit a BinomialDistribution to exptl data?
  • Next by Date: Re: Question on PrincipalValue in Integrate
  • Previous by thread: Re: subscripted local variables?
  • Next by thread: Re: subscripted local variables?