I'm trying to insert a random polynom in a mathml question, let me explain:
code:
$a = range(-5,5)
$b = range(-5,5)
$c = range(-5,5)
$eq = maple('MathML:-ExportPresentation(($a)*x+($b)*y+($c)*z = 0))
question:
${eq} ${eq}
Obviulsy i'm getting error on that because eq is in mathMl format, with
tags, my question is: can i get the same output using only maple format? or there is a way to format the output of MathML[Export] throwing away the
This works for me.
The code I would use to get the MathML is
$a = range(-5,5);
$b = range(-5,5);
$c = range(-5,5);
$eq = maple("printf(MathML[ExportPresentation](($a)*x+($b)*y+($c)*z = 0));
");
Then in the question itself I simple put
$eq
This gives me the desired equation with no problems.