Re: help with new symbols (or pointers)
- To: mathgroup at smc.vnet.net
- Subject: [mg92435] Re: help with new symbols (or pointers)
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Tue, 30 Sep 2008 21:52:22 -0400 (EDT)
- Organization: Uni Leipzig
- References: <gbt2t4$lfo$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
Hi, look what Unique[] can do for you with vars = Table[Unique["x"], {50}]; SetAttributes[vars, Temporary] No pointers, but you can pass the name of a variable instead of its value. Regards Jens ag wrote: > Hi, > > I want to create new symbols inside a module & assign them values=85 > > e.g. something like: Symbol[=93x=94<>"num"] = 5 > It is not working=85 > > The problem is that I dont know how many symbols I would need (it > could be 5, 50 or 5000)... So I cannot do something like: > Symbol["x"<>"1"]; > x1=5; > > Is there anything in Mathematica which is like pointers in C > (something which would assign a value to a given location in memory)? > > Any help would be appreciated! > > Thanks, > AG. >