Format maple output

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}

' align='absmiddle'>

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

' align='absmiddle'> tag?

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.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
}