MathML Package



On 7/21/08, fred.wang at free.fr <fred.wang at free.fr> wrote:

>  >About importing XML into Maxima, it seems like the most
>  >useful representation would be a Maxima expression, instead
>  >of a string.

>  Yes I agree with you. The reason why I did not this way is simply that I did not
>  know the internal structure of Maxima. If you can indicate me where I can find
>  information about that then I would be able to modify math_import in order to
>  make the conversion more straightforward.

Take a look at:

http://maxima.sourceforge.net/wiki/index.php/Maxima%20internals

In summary, Maxima expressions are conses with the car also a cons,
caar being the operator and the rest of the car being flags, and the
cdr of the expression being the arguments. There are some expressions
(notably MRAT) which do not follow that scheme, but I think anything
imported from XML can be represented by the ((op ...) args ...) scheme.

HTH

Robert Dodier