Question: accept only simplified answer in MapleTA

Suppose I have a questions that says simplify some random square root

using the algorithm

$radicand=range(10,50,1);
$ques="sqrt($radicand)";
$ques_exact=maple("simplify($ques);");
$ques_ML=maple("f := $ques_exact: XMLTools[Print](MathML[Export](f));");

How do I create an answer field that ONLY allows the student to provide the simplified answer $ques_ML??  How might I provide partial points if they do not simplify (for a classic pythag triangle question for example)?

Thank you

Please Wait...