Export function



On 1/3/2011 6:56 AM, Christian Wolf wrote:
> Hello again,
>
> here another simple question: How to export a function with save?
>
> I got it running with simple functions e.g. gradient(y,x) := .... with
> save("<filename>", gradient).
>
> But my problem is th efollowing:
> matchfix("L[","]");
> L[f,g,x] := .....
> save("/tmp/show_form.lisp", L[ )
>
> Now I am not able to find the correct syntax to write this function to a file. I
> get an message about an illegal use of delimiter (Space before the L[).
>
> What's wrong?
> Thx
> Christian
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
I suspect Maxima has not been programmed to save syntax extensions.

Two suggestions:

1. Write out your program commands as ordinary text in a "batch" file, 
and load them in.
2. or if you want to save the syntax, put  the matchfix command in a 
program, say

setup():=block([], matchfix(....) .... other initialization ...).