Subject: For Loop Trouble mistake in previous e mail
From: Stavros Macrakis
Date: Mon, 11 Feb 2013 09:15:54 -0800
Rupert,
Thanks for the pointer to stackoverflow, where we can see Blomberg's full
code:
for i:1 while i<=21 do(for j:1 while j<=21 do
(if i<j then aa:realpart(c1[-j+i+21]))) and do aa1:makelist(aa,i,1,21,1);
The problem here is very simple. The clause "do aa1:makelist(...)" is an
infinite loop, equivalent to "while true do ...".
It's not clear to me what Blomberg intended by "... and do ...", but pretty
clearly not an infinite loop.
Maybe something like
for i thru 10 do (xxx, yyy)
-s
On Mon, Feb 11, 2013 at 8:40 AM, Rupert Swarbrick <rswarbrick at gmail.com>wrote:
> Stavros Macrakis <macrakis at alum.mit.edu> writes:
> > Your emails are all cut off, so we can't see what you're doing.
>
> See also
> http://stackoverflow.com/questions/14779099/maxima-for-loop. Until he
> responds somewhere, I suggest we stop trying to help.
>
> Rupert
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>
>