for



Hi,

Here are 2 examples of using for in Maxima :

----------- first example ---------------
(%i1) for radius:4 thru 1 step -1 do disp(radius);
4
3
2
1
(%o1) done

---------second example --------------
(%i1) s:-1;
for radius:4 thru 1 step s do disp(radius);
(%o1) -1
(%o2) done
--------------- end ---------------------

In first numerical values are used as an indexes
It works as expected.
In second variable is used to pass value of step.
It (?) does not work.

Does it mean that only numerical values can be used here ?

Regards

Adam