Extending maxima language




> -----Original Message-----
> From: maxima-bounces at math.utexas.edu [mailto:maxima-
> bounces at math.utexas.edu] On Behalf Of Andrej Vodopivec
> Sent: Sunday, January 07, 2007 11:51 AM
> To: Maxima - list
> Subject: Extending maxima language
> 
> Since people are discussing a new case statement for maxima I propose
> we add some more stuff at the same time.
> 
> Currently I can think of three things which I would like to have in
> maxima. I think I would like to have 2) and 3) even more that 1).
> 
> 1) cond statement (with whatever syntax)

The model for the case setup could be used to implement this.

Maybe cond (a->b, c->d ....)


> 
> 2) assignments to lists:
> something like [a,b,c] == [1,2,3] would be equivalent to a:1, b:2,
> c:3. This could be done by extending : to work in this case or adding
> a new operator == or similar.

I thought we already did this. Apparently it's not in by default, but the
code is attached. Load it in to maxima and type
mset_extension_operators:true;
[a,b,c]:[1,2,3];

This was written by me, with suggestions by S. Macrakis and R. Dodier
(according to the comments in the file).

> 
> 3) unwind_protect:
> I think Barton had an implementation which he posted to this list.