This is probably not very helpful, but why require the students to write their results in MathML? It is not a very natural way to write expression. On the other hand, if you use valid python expression it would probably be much easier.
-- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at http://groups.google.com/group/sympy. For more options, visit https://groups.google.com/groups/opt_out.