Output intermediate results during the runtime of a loop



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