Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2002

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

Search the Archive

Re: Iterators

  • To: mathgroup at
  • Subject: [mg32847] Re: [mg32826] Iterators
  • From: Tomas Garza <tgarza01 at>
  • Date: Fri, 15 Feb 2002 02:49:47 -0500 (EST)
  • References: <>
  • Sender: owner-wri-mathgroup at

Perhaps you'd be kind enough to supply some concrete example. It is
difficult to study a problem such as yours in abstract terms.

Tomas Garza
Mexico City
----- Original Message -----
From: "Juan" <erfa11 at>
To: mathgroup at
Subject: [mg32847] [mg32826] Iterators

> Hi,
> If I write:
> y = Table[Part[w,p[i]],{i,2}], then I get a message saying thet p[i] is
> a integer.
> How can I avoid that?
> I have to define w[[p[i]]] before I using it; p[i] are  iterators and w is
> list of numbers.Then, at the end,I can write:
> Table[{w[[p[1]]],w[[p[2]]},{p[1],a,b},{p[2],p[1],c}]
> This is becouse,the numbers of iterators are enter with the parameters in
> the definition of the function, and you don't know that before.
> Thanks
> Juan
> _________________________________________________________________
> Descargue GRATUITAMENTE MSN Explorer en

  • References:
    • Iterators
      • From: "Juan" <>
  • Prev by Date: Heat conduction equation
  • Next by Date: Re: How to color countours in a contour Plot?
  • Previous by thread: Iterators
  • Next by thread: RE: Iterators