MathGroup Archive 2007

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

Search the Archive

Re: Clear, Remove variables


Hi,

due to the internal structure a subscripted symbol
is stored as Subscript[x,1] and not as xAnyChracter1
and the values are associated with Subscript[] and
not with x, i.e.

Subscript[x,1]=4

is a down value to Subscript[] and not to x.
You can clear Subscript[] and this will remove all
values associated with subscripted variables or you can associate
the assigmet

x/: Subscript[x,1]=4

and it will be in the UpValues[] of x and now you can clear
x to remove the value.

You can do what Symbolize[] does and setup a new symbol, that is
read and printed as Subscript[x,1] but is internal stored as
x\[SomeLetterYouWillNeverUse]1

and clear this symbol.

Regards
   Jens



Miguel wrote:
> In version 6.0, I can not to clean variables with subscripts by Clear
> or Remove. Why?.
> 
> Can I to copy and to use the package Utilities`SubscriptSymbols`of 5.2
> version in 6.0 version?
> 
> 


  • Prev by Date: Re: String to List
  • Next by Date: Re: $10K Mathematica Machine
  • Previous by thread: Re: Clear, Remove variables
  • Next by thread: Re: Clear, Remove variables