MathGroup Archive 1999

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

Search the Archive

Re: Nested For Loops

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

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

but I bet this is not the true Mathematica way to handle your


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