question using subst



Seems to work in CVS:

(%i1) eq1  : a = b$

(%i2) eq2 : c = d$

(%i3) l : makelist(concat(eq,k),k,1,2);
(%o3)                             [eq1, eq2]
(%i4) ev(l);
(%o4)                           [a = b, c = d]
(%i5) concat(eq,1);
(%o5)                                 eq1
(%i6) ev(%);
(%o6)                                a = b
(%i7) concat(eq,2);
(%o7)                                 eq2
(%i8) ev(%);
(%o8)                                c = d
(%i9) build_info();

Maxima version: 5.9.1.1cvs
Maxima build date: 21:1 6/17/2005
host type: i686-pc-linux-gnu
lisp-implementation-type: CMU Common Lisp
lisp-implementation-version: 19a

Cheers,
CY

--- Barton Willis  wrote:

> 
> But there is a problem:
> 
> (%i1) eq1  : a = b$
> (%i2) eq2 : c = d$
> (%i3) l : makelist(concat(eq,k),k,1,2);
> (%o3) [eq1,eq2]
> (%i4) ev(l);
> (%o4) [eq1,c=d]  <--- why does eq2 evaluate but not eq1?
> 
> Let's try evaluating outside a list
> 
> (%i5) concat(eq,1);
> (%o5) eq1
> (%i6) ev(%);
> (%o6) eq1   <---- same problem as before
> (%i7) concat(eq,2);
> (%o7) eq2
> (%i8) ev(%);
> (%o8) c=d
> 
> Is this a case confusion that is fixed in cvs?
> 
> (%i14) build_info();
> Maxima version: 5.9.1
> Maxima build date: 7:34 9/24/2004
> host type: i686-pc-mingw32
> lisp-implementation-type: Kyoto Common Lisp
> lisp-implementation-version: GCL 2.6.5
> 
> _______________________________________________
> Maxima mailing list
> Maxima@www.math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com