Custom Maxima functions at startup?



Yes, you can do this.  Put your functions into a file called 
maxima-init.mac.   Put this file in place
Maxima will find it.  This file will load when maxima starts.   You can 
also have a maxina-init.lisp 
file of common lisp code.

I don't think any of your functions will conflict with any built-in 
function ---- if they do, maxima sometimes
gives a warning.

Barton





"Jon B" <3ujg84402@sneakemail.com>
Sent by: maxima-admin@math.utexas.edu
04/14/2004 12:42 PM

 
        To:     maxima@www.ma.utexas.edu
        cc: 
        Subject:        [Maxima] Custom Maxima functions at startup?


I do a lot of dB calculations and parallel resistors, impedances, etc.
I wrote these functions and operator (idb = inverse dB):

db(x):=float(20*log(x)/log(10));
idb(x):=float(10^(x/20));
INFIX("||")$ "||"(x,y):=x*y/(x+y);

1. I have to cut and paste these every time I start Maxima to use
them. Is there a way to make it load them automatically at startup without 
me typing anything?

2. Would they conflict with any built-in functions or operators if I
did?

I am using Maxima 5.9.0 in Windows XP.

Thanks,
Jon




--------------------------------------
Protect yourself from spam, 
use http://sneakemail.com

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