describe & newline problems, was: proposed release schedule for maxima 5.9.3
Subject: describe & newline problems, was: proposed release schedule for maxima 5.9.3
From: van.Nek at gmx
Date: Mon, 12 Dec 2005 16:35:32 +0100
Am 11 Dec 2005 um 9:03 hat Robert Dodier geschrieben:
> > secondly, I wonder wether function sprint is commented out
> > in plot.lisp in 5.9.2, in 5.9.1 it was available. What is the reason
> > for that? Who did the change? Is this related somehow?
>
> sprint wasn't a very complicated function; i'm guessing it
> was introduced at some point because it was convenient
> in the plotting code and removed when it didn't seem
> useful anymore. the cvs log for plot.lisp should have
> the story.
Hello Robert,
I am surprised to read that sprint should only have a temporary role.
I found it by reading the 5.9.0 resp. 5.9.1 documentation.
I use it frequently in my classes. For series of fibs, random numbers, whatever.
At first sight it seems to be impossible to write the old 'sprint' including line feed as a
function. The line feed must be provided by the system. I cannot tell a function that it
should behave different at a first function call after pressing 'enter'. Or is there a global
variable which is set by each time pressing 'enter'?
So, logically, this cannot work.
> i think this is pretty close to equivalent:
>
> sprint ([L]) := print (apply (sconcat, join (L, makelist (" ", i, 1,
> length (L)))));
>
(%i2) for n:0 thru 10 do sprint(fib(n))$
0
1
1
2
3
5
8
13
21
34
55
Volker