Customizing Maxima. Renaming Maxima functions



Well, it works but I need to rewrite it all in a more useful way.  I was too focused in the beginning on the display of 
piecewise functions and now I realize this is a mistake, I want it to work well with the rest of Maxima.  I hope to 
eventually release a package which will be of sufficient utility that it might be included in a future release.  I think 
pw(f,x) should return either a summation or an "if then else" based on a flag that the user can change to fit their 
preferences.  Some people have said they have a preference.

There is now the display problem.  The summation notation display actually looks nice to me, so you don't have to use a 
matrix.  I don't like the way wxMaxima displays "if then else's".  I was thinking of altering wxmathml.lisp in wxMaxima 
and maybe more code elsewhere in Maxima to improve the appearence of "if then's" for those who like that way.

I am pretty sure I can do it now.

Thanks,

Rich


----- Original Message ----- 
From: "Richard Hennessy" <rvh2007 at comcast.net>
To: "Maxima List" <maxima at math.utexas.edu>; "'Edwin Woollett'" <woollett at charter.net>; <fateman at cs.berkeley.edu>
Sent: Thursday, September 25, 2008 3:30 PM
Subject: Re: [Maxima] Customizing Maxima. Renaming Maxima functions


Thanks,

That should do it.  Now I just have to change my code to use lists as input using the syntax

integrate(e,x,[v]):=block(

...
)$

I will let you know if it works.

Rich

----- Original Message ----- 
From: "Richard Fateman" <fateman at cs.berkeley.edu>
To: "'Richard Hennessy'" <rvh2007 at comcast.net>; "'Maxima List'" <maxima at math.utexas.edu>
Sent: Thursday, September 25, 2008 12:52 PM
Subject: RE: [Maxima] 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)

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