[Maxima] printf inside for loop
Robert Dodier
robert.dodier at gmail.com
Sat Aug 4 19:03:35 CDT 2007
On 8/4/07, Edwin Woollett <woollett at charter.net> wrote:
> (%i42) for n thru 3 do ev( printf(false,"~d",m),m=n );
> (%o42) done
Ted, printf(false, ...) returns a string. To print stuff to the console,
try printf(true, ...) instead. I guess the documentation could be clarified.
Or if you want to print to a file, try:
s : openw("foo.out");
printf(s, ...);
HTH
Robert Dodier
More information about the Maxima
mailing list