Output intermediate results during the runtime of a loop
Subject: Output intermediate results during the runtime of a loop
From: Robert Dodier
Date: Thu, 29 Jul 2010 09:36:33 -0600
On 7/28/10, mok-kong shen <mok-kong.shen at t-online.de> wrote:
> If one has a for-loop consisting of, say, 10 steps and the computation
> of each step takes quite some time, is it possible to print out
> something at the end of each step during the runtime of the loop?
> (I tried 'print', but the 10 outputs came out all together at the end
> of procesing of the entire loop.)
I'm guessing that you are using the wxMaxima user interface,
which seems to read all the output before displaying any of it.
I don't know if there is a way to change that behavior.
Try using the Maxima command line program instead.
best
Robert Dodier