Andre Poenitz wrote:
>
> > Sounds truly wild. If these programms have a scripting or macro
> > language,
>
> Most of the interesting programs are scriptable. Maple e.g:
>
> echo "lprint(expand((x+1)^3));" | maple -q
>
> --> x^3+3*x^2+3*x+1
>
> The problem is parsing. First you have to convert from
> LyX formula (sort of LaTeX) to Maple syntax which is *not* trivial
> since LaTeX does not preserve the logical structure of the formula
> - just think about indices etc. Calling Maple is the easy part.
> Converting back to LaTeX is not difficult either:
>
> echo "latex(expand((x+1)^3));" | maple -q
>
> --> {x}^{3}+3\,{x}^{2}+3\,x+1
>
> So if you come up with a decent LaTeX parser in C++ I am willing to
> implement the easy parts ;-)
>
> Andre'
>
> PS: The LyX server is not of much help in this scenario.
There is a standard called MathML, this excerpt seems relevant:
***
Maple: A computer algebra system from Waterloo Maple Inc. Has
demonstrated import,
export and evaluation of MathML content expressions. Future
support for generation and
rendering. http://www.maplesoft.com
Mathematica: A computer algebra system from Wolfram Research Inc. Will
support
rendering and output of MathML. http://www.wolfram.com
Is automatic translation to and from LaTeX possible ? Is there anything
available which does it ?
Generation of MathML from that in LaTeX documents
(presentation and content) is certainly
possible. Organisations working on this problem include
University of Western Ontario,and the AMS and SIAM.
***
This is from the MathML faq at:
http://www.w3.org/Math/mathml-faq.html#tools
I have no idea about Scilab, Octave, or MuPad. The Scilab people are
active though and I
would expect them to support a standard.
An interesting problem in computer theory. Two different syntactical
designs covering the
same semantic object: how to translate. There probably is no standard
program. Even if
both syntactical designs are BNF defined.
Ray