In the past few days it has been altered (improved I hope) to its current form, which is attached.

I am having a few problems with it.

- In the problem below (created for testing this context - you would need to download the attached context file) there is one blank expecting sqrt(50)-sqrt(32) to be simplified to sqrt(2). If I enter "sqrt(50)-sqrt(32)", I get the message "Can't generate enough valid points for comparison". I don't understand this message because I think I understand where the comparison happens, and the comparison is of two constant Formulas. So why should there be any issue with finding valid points?
- Possibly related, if I try something like "sqrt(50)-sqrt(32)+x-x", I get the error message "The domain of your function doesn't match that of the correct answer"
- The same situation happens in a later answer that is expecting (1+sqrt(2))/2 if I enter "-1/(2-sqrt(2))".
- In each case, if the subsequent answer is supposed to have some kind of feedback message, that message is suppressed. Somehow whatever badness is happening with regard to domain issues in the first two bullets is seeping into the next answer checker.
- Lastly, and unrelated (I think), one of these answer blanks expects 1+sqrt(2)+sqrt(3). It properly rejects root(3,1)+sqrt(2)+sqrt(3), but accepts sqrt(1)+sqrt(2)+sqrt(3). I don't understand this because the mechanism that prevents root(3,1) is basically identical to the one that should be preventing sqrt(1).

############################################## DOCUMENT();

loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl", "contextLimitedRadical.pl", ); ##############################################

Context("LimitedRadical");

##############################################

TEXT(beginproblem()); BEGIN_PGML ##Square Roots (use sqrt(x))

[`\sqrt{16}=`] [________________]{Formula("4")}

[`\sqrt{27}=`] [________________]{Formula("3*sqrt(3)")}

[`\sqrt{x^3}=`] [________________]{Formula("abs(x)*sqrt(x)")}

[`\sqrt{12x^5}=`] [________________]{Formula("2x^2*sqrt(3x)")}

[`\sqrt{2}+\sqrt{2}=`] [________________]{Formula("2 sqrt(2)")}

[`\sqrt{50}-\sqrt{32}=`] [________________]{Formula("sqrt(2)")}

[`1+\sqrt{2}+\sqrt{3}=`] [________________]{Formula("1+sqrt(2)+sqrt(3)")}

[`\frac{1+\sqrt{2}}{2}=`] [________________]{Formula("(1+sqrt(2))/2")}

##Other Roots (use root(n,x))

[`\sqrt[3]{27}=`] [________________]{Formula("3")}

[`\sqrt[3]{-64}=`] [________________]{Formula("-4")}

[`\sqrt[3]{x^9}=`] [________________]{Formula("x^3")}

[`\sqrt[3]{8x^2}=`] [________________]{Formula("2root(3,x^2)")}

[`\frac{\sqrt{49x}}{\sqrt[3]{x^2}}=`] [________________]{Formula("7/root(6,x)")}

[`\sqrt{\sqrt[3]{(3x)^2}}=`] [________________]{Formula("root(6,(3x)^2)")}

END_PGML

##############################################

ENDDOCUMENT();