Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

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

Search the Archive

Re: clearing a variable with a dummy subscript

  • To: mathgroup at smc.vnet.net
  • Subject: [mg126552] Re: clearing a variable with a dummy subscript
  • From: "djmpark" <djmpark at comcast.net>
  • Date: Sat, 19 May 2012 05:41:46 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <16620439.4113.1337334120733.JavaMail.root@m06>

Use Unset.

Subscript[u, k_] =. 


David Park
djmpark at comcast.net 
http://home.comcast.net/~djmpark/index.html 



From: Andre Hautot [mailto:ahautot at ulg.ac.be] 


Hi !
Here is something very simple I don't understand :

f[x_] := x; f[2]    (*A function*)
 2

Clear[f]; f[2]       (*The same perfectly cleared as expected*)
f[2]


Subscript[u, k_] := k; Subscript[u, 2]        (*u with subscript k_ 
entered via the palette*)
 2

Clear[u]; Subscript[u, 2]          (*I found no way to clear u; a 
suggestion ?)
2

Thanks in advance,

ahautot





  • Prev by Date: Re: Total least squares with Mathematica?
  • Next by Date: Re: problem with Manipulate
  • Previous by thread: Re: clearing a variable with a dummy subscript
  • Next by thread: Re: clearing a variable with a dummy subscript