MathGroup Archive 2004

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

Search the Archive

Re: Table Iterators

  • To: mathgroup at smc.vnet.net
  • Subject: [mg52640] Re: Table Iterators
  • From: "Steve Luttrell" <steve_usenet at _removemefirst_luttrell.org.uk>
  • Date: Sun, 5 Dec 2004 02:08:31 -0500 (EST)
  • References: <cos193$dm8$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

You need to wrap the iterator in Evaluate.

This doesn't work:

iter={i,1,10}
Table[i,iter]

But thus does work:

iter={i,1,10}
Table[i,iter//Evaluate]

Steve Luttrell

"Gregory Lypny" <gregory.lypny at videotron.ca> wrote in message 
news:cos193$dm8$1 at smc.vnet.net...
> Hello Everyone,
>
> I need to create many tables, all with the same iterators {i, iMin,
> iMax, di}, {j, jMin, jMax, dj}.  I'd like to be able to set the
> iterators outside of the Table function so that I can change them and
> have all of the tables change accordingly.
>
> I've tried
>
> rowDim:= {i, iMin, iMax, di} and colDim:={j, jMin, jMax, dj} inside of
> Table[stuff,rowDim,colDim]
>
> but this generates an iterator error.
>
> Any suggestions would be most appreciated.
>
> Greg
> 



  • Prev by Date: Re: Table Iterators
  • Next by Date: Re: Table Iterators
  • Previous by thread: Re: Table Iterators
  • Next by thread: Re: Table Iterators