On Tue, 25 May 2010, Henrique Andrade wrote: > Now, because I just need the values for 6, 12 and 24, I'm trying to > substitute the second line "loop for (n=6;n<=24;n=n*2)" for this: > > loop for (n=6;n=12;n=24) > > But the script isn't working. Any hints?
This, maybe? <script> scalar m = 3 scalar base = 6 scalar x = 1 matrix vals = zeros(m,1) loop for i=1..m --quiet y = base * x printf "Do some fun stuff with %d\n", y vals[i] = y x *= 2 endloop print vals </script> Riccardo (Jack) Lucchetti Dipartimento di Economia Università Politecnica delle Marche r.lucchetti(a)univpm.it http://www.econ.univpm.it/lucchetti