bug in maxima?



On Thu, Mar 6, 2008 at 10:31 AM, Jan Brosius <jan.brosius at skynet.be> wrote:
>  when I give into Maxima the following code:
>     for q1:-10 while q1<3  do for q2:-10 thru 10 while q2>4 do print([q1,q2]);
>  then Maxima doesn't print the [q1,q2] values.

In Maxima, "for", "while", and "thru" are all modifiers to the basic
"do" statement.

It's the inner loop that does nothing:

         for q2:-10 thru 10 while q2>4 do ...

This is equivalent to

         block([q2: -10], while (q2>4 and q2<=10) do (..., q2:q2+1) )

Since -10>4 is not true, the while-clause terminates the iteration immediately.

           -s