On 03/05/2010 07:29 AM, Helge Hafting wrote:
Janek Kozicki wrote:
[...]
I see now, that such integration would require at least a running
maxima session in the background.
I'm quite experienced with latex and C++.
I am not sure if I decide to go this path, I want to investigate and
judge the difficulty of writing patches that will scratch my itch.
I don't know what is the current state of lyx+maxima integration, and
I asked for ML archives in order to check this.
Not sure what you want to do, but there is some LyX integration with
maxima. You can write a formula in LyX, and then use this menu:
Edit->Math->Use Computer algebra system->Maxima
This will do transformations such as:
"1+1+x+x" becomes "1+1+x+x=2x+2"
Calculus:
"\int x^2 dx" becomes "\int x^2=\frac{x^3}{3}"
"\int\int\frac{x}{y} turns into \frac{x^2 \log{y}}{2}
\frac{d}{dx}\frac{1+x}{1-x}
turns into
\frac{x+1}{\left(1-x\right)^{2}}+\frac{1}{1-x}
And so on. Apparently, there are many limitations though. Maxima can do
more, the communication between LyX and maxima is limited. You can't
do matrix multiplication, for example.
All of this is correct, but the infrastructure for doing more is there.
Look at src/mathed/MathExtern.cpp and the various maxima() methods.
We'd be very, very happy to have someone work on this.
rh