I have an integration problem where I can enter the answer exactly as it appears in the "correct " answer window, but the answer gets marked as incorrect. I am using FormulaUpToConstant(), which I have successfully used in other problems; I have no idea what is different here. I have removed all the extraneous pieces, and have a test problem that exhibits the trouble; here it is (I have also attached it, in case that is more convenient): -- Thanks for any help. - Hy

DOCUMENT();

loadMacros(

"PG.pl",

"PGbasicmacros.pl",

"PGchoicemacros.pl",

"PGanswermacros.pl",

"PGauxiliaryFunctions.pl",

"parserFormulaUpToConstant.pl"

);

$showPartialCorrectAnswers = 1;

$b = 16;

$ans = FormulaUpToConstant("((1/3)*(x^2-$b)^(3/2))");

TEXT(beginproblem());

BEGIN_TEXT

$BR $BR

Enter the answer: $ans

$BR \{ans_rule( 60) \}

END_TEXT

ANS( $ans->cmp() );

ENDDOCUMENT();