Customizing Maxima. Renaming Maxima functions



try
f([a]):=a;

f(1,2,3);
f(1,2);
 

> -----Original Message-----
> From: maxima-bounces at math.utexas.edu 
> [mailto:maxima-bounces at math.utexas.edu] On Behalf Of Richard Hennessy
> Sent: Thursday, September 25, 2008 9:42 AM
> To: 'Maxima List'
> Subject: Re: [Maxima] Customizing Maxima. Renaming Maxima functions
> 
> Thanks,
> 
> I think this actually is what I want.  I have just one more 
> question, I hope.  How can you define in Maxima a function 
> called let's say
> 
> foo(e, x)
> 
> and also have it work for three arguments
> 
> foo(e, x, a, b)