MathGroup Archive 2007

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

Search the Archive

Re: subscripted local variables?

  • To: mathgroup at
  • Subject: [mg80709] Re: subscripted local variables?
  • From: Andrew Moylan <andrew.j.moylan at>
  • Date: Wed, 29 Aug 2007 04:23:07 -0400 (EDT)
  • References: <fath6p$3o7$>

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 Be sure to read
the warning there about auto-generated package files in Mathematica 6.


On Aug 27, 1:42 pm, Yaroslav Bulatov <yarosla... at> 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?