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

MathGroup Archive 2008

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

Search the Archive

Re: Symbol function, a question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg90495] Re: Symbol function, a question
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Fri, 11 Jul 2008 02:01:27 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <g54om5$f1i$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de

Hi,

a) Symbol is a head an not function, you mean ToExpression[]
b) just write x95

Regards
   Jens
tung tran wrote:
> Hi everybody, I have a question needing your help.
> Firstly, I create a variable
> x95 = 100
> Now, I want to change the value of my variable x95 to 20 ,
> so I want to use some procedure like :
>  
> Symbol["x" <> ToString[95]] = 20
> my idea is to make Mathematica write the term "x95" automatically for
> me but when I use the Symbol function in this case, it gives me
> automatically 100 and I don' t know how to call only x95.
> Thank you if someone can give me a suggestion.
> 
> 
> Tung
> 


  • Prev by Date: ListPlot still ignores SetOptions[] command
  • Next by Date: Re: Problem parsing date formats using Import
  • Previous by thread: Re: Symbol function, a question
  • Next by thread: Re: Symbol function, a question