On Tue, 25 May 2010, Henrique Andrade wrote: > Dear Riccardo, Kehl and Guilherme, > > I was looking for something simple. The option "loop for (n=6; n<=24; > n*=2)" worked just fine. But in my humble opinion the option "loop for > (n=6; n=12; n=24)" should work too, but this is not a big deal ;-)
We do have a construct like the one you want. Try this: <script> loop foreach i 6 12 24 scalar x = $i printf "the square root of %g is %g\n", x, sqrt(x) end loop </script> Riccardo (Jack) Lucchetti Dipartimento di Economia Università Politecnica delle Marche r.lucchetti(a)univpm.it http://www.econ.univpm.it/lucchetti