ev error in maxima



Robert Dodier wrote:
> On Thu, Jun 25, 2009 at 1:59 PM, David
> Ronis<ronis at ronispc.chem.mcgill.ca> wrote:
>
>   
>> setting v=0, which I did by ev(%, v[1]=0, v[2]=0);  To my surprise, v
>> still appears in the result.  Is this a bug, or am I missing something?
>>     
>
> Well, this isn't exactly a bug, but it is a deficiency in Maxima's
> binding mechanism. Only a symbol can be bound, not a
> subscripted variable. I think Maxima should treat subscripted
> variables just like unsubscripted ones, so that's a wart.
>   
 I suspect that is not the explanation..
ev(x+v[0],v[0]=3)  returns x+3.

I think the explanation is that v is a symbol,  v[0] is the 0th element 
of an array with name v.
try
v[0]:vzero;
v:45;
v[0];
v;

> _________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>