Hey, thanks!
Oh, but I must ask - is kill some kind of deconstructor?
I am relatively fresh with maxima and my sources are mainly the
documentation and the online book. I've seen all these various rem***
commands but I'm not sure what is the best way to destroy objects and
their contents.
On 18/02/07, Stavros Macrakis <macrakis at alum.mit.edu> wrote:
>
> >
> >
> > If you want to re-assign a, you must first kill it (don't ask), so if you
> are writing a batch script, it should look like:
> >
> > kill(a,b,c,d,e)$
> > make3vec(v) := v :: makelist(v[i],i,1,3)$
> > map(make3vec,[a,b,c,d,e])$
> >
>
> Silly me. You don't have to kill a,b,c...; you just need to make sure to
> quote the variable names, that is:
>
> map(make3vec, ' [a,b,c,d,e])$
> or
>
> map(make3vec,['a,'b,'c,'d,'e])$
>
> -s
>
>