Converts an expression in MathML
mml=mathml(x)
can be of type int, double, complex, string, sym, polynomial
is a string containing MathML code corresponding to the expression.
This function uses the function mathml
in the Maxima's package lurkmathml
.
You can use the global variable xml_en_tete
to put the en-tete required for xml file.
Syms(['x']) e=mathml(expand((x+1)^3)) mputl([xml_en_tete;e],TMPDIR+'/formula.xml')