Re: subscripted local variables?
- To: mathgroup at smc.vnet.net
- Subject: [mg80709] Re: subscripted local variables?
- From: Andrew Moylan <andrew.j.moylan at gmail.com>
- Date: Wed, 29 Aug 2007 04:23:07 -0400 (EDT)
- References: <fath6p$3o7$1@smc.vnet.net>
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]