MathGroup Archive 1999

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

Search the Archive

Re: Nested For Loops

  • To: mathgroup at smc.vnet.net
  • Subject: [mg15718] Re: [mg15699] Nested For Loops
  • From: Jurgen Tischer <jtischer at col2.telecom.com.co>
  • Date: Fri, 5 Feb 1999 03:42:16 -0500 (EST)
  • Organization: Universidad del Valle
  • References: <199902011954.OAA20628@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Arani,
I'm afraid without context there is no good answer. Of course one could
answer

Do[something here,{t,r1,r2,step},{z,r3,r4,step1}]

but I bet this is not the true Mathematica way to handle your
what-this-something-is-good-for.

Jurgen

aranisin wrote:
> 
> Hi,
> 
> I am wondering how to write a nested iterative loop in Mathematica.
> 
> I want the equivalent of:
> 
> For [t=r1; t<r2, t=r1+step,
>     For [z =r3; z< r4, z=r3+step1,
>         Do something here
>         ]
>     ]
> 
> Thanks for your help.
> 
> -Arani



  • Prev by Date: Points on MultipleListPlots
  • Next by Date: BracketingBar for output
  • Previous by thread: Nested For Loops
  • Next by thread: Re: Nested For Loops