MathGroup Archive 2002

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

Search the Archive

Re: Iterators

  • To: mathgroup at smc.vnet.net
  • Subject: [mg32847] Re: [mg32826] Iterators
  • From: Tomas Garza <tgarza01 at prodigy.net.mx>
  • Date: Fri, 15 Feb 2002 02:49:47 -0500 (EST)
  • References: <200202140643.BAA19392@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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 hotmail.com>
To: mathgroup at smc.vnet.net
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
not
> 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
a
> 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
http://explorer.yupimsn.com/intl.asp
>
>



  • References:
    • Iterators
      • From: "Juan" <erfa11@hotmail.com>
  • 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