On Fri, 2006-11-24 at 15:28 +0100, Hugo Coolens wrote:
> I suppose there is a more elegant way to make xmaxima "forget earlier
> definitions"?
Oh, I assumed you already knew the difference between f(x):=
and f[x]:=. One of the differences is that if f(4) needs
f(1), f(2) and f(3), it will calculate them again, while
f[1], f[2],... stay in memory and will not be calculated again.
That means faster calculations, but if you make a mistake
(as you did) you have to use kill(f) (in your case kill(zth)).
You can see this explained in more detailed in example 2.2
on page 9 of my book:
http://fisica.fe.up.pt/maxima/dynamicalsystems/dynamicalsystems.pdf
(it is a 216 pages book, but I've only translated 27 pages so far).
Cheers,
Jaime