[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Maxima] Bug in 'for', Maxima, Debian ?



Zbigniew Komarnicki escribió:
Hello,

I try to write fuction that return a list of number in range [a,b] with step k, but first i try in command window this code:

/* This work in command window without variables */
kill(all);
m:[];
for i:0 step -3 thru 10 do (m:append(m, [i]), display(i));
display(m);

Here is OK
If you want to reach 10, shouldn't step be a positive number?

--
Mario


Reply to: