Exporting functions (for use in other applications)
Subject: Exporting functions (for use in other applications)
From: Max
Date: Mon, 27 Jun 2005 23:50:59 +0200
Hello,
sorry for bothering you another time. :-) There is another thing I cannot find
a solution for..
Is it possible to export a function for use in another application? I have
some huge functions in maxima that I need in another application. And if
possible I wouldn't want to have to type them in myself.
Strictly speaking I'd like to export a function as C code.
If I have: f(x)=x^2; in maxima,
I'd like to get something like: double f(x) { return pow(x,2); }
I have found the save() function, but that saves the function in some for me
rather hard to parse format.
Is there some other/better way to do what I need?
thanks again,
Max