display patch, was: get name of variable as string in function?
Subject: display patch, was: get name of variable as string in function?
From: Raymond Toy
Date: Fri, 10 Feb 2012 14:11:47 -0800
On Fri, Feb 10, 2012 at 9:16 AM, Edwin Woollett <woollett at charter.net>wrote:
> I am using the new version of comm.lisp downloaded from
> git, and find a peculiar interaction with integrate
> resulting in a lisp error:
>
> ------------------------------**------
>
> Maxima 5.26.0 http://maxima.sourceforge.net
> using Lisp GNU Common Lisp (GCL) GCL 2.6.8 (a.k.a. GCL)
>
>
> (%i1) integrate(-1/(x^2-x),x,-1/2,1/**2);
> Principal Value
> (%o1) log(3)
> (%i2) load ("comm-new.lisp")$
> (%i3) integrate(-1/(x^2-x),x,-1/2,1/**2);
> Maxima encountered a Lisp error:
>
> Error in COND [or a callee]: The variable NUM is unbound.
>
>
I suspect this is not a problem with the new version. I'm guessing you
will have the same problem if you load the original version of comm.lisp.
With the current git version of maxima, I don't run into any problems
(without loading com-new.lisp, separately). The output of integrate is
different, though, but it is still correct.
Ray