Hi,
WebWorks is reporting that there are errors in a number of the standard
problems in the Rochester Problem set. Possibly we have something
configured incorrectly.
For example:
rochester_problib/setVectors1space3D/UR_VC_1_4.pg
reports
"Error: "x" does not make sense here. There is an error in WeBWorK's answer to this problem..."
All of the questions in this section that require an expression as an
answer seem to have this problem. This particular question requires the
student to input the equation of a given sphere.
Here is the relevant problem code, which in fact seems correct to me, going by what is in the problem writing tutorial:
===========================================================
DOCUMENT();
loadMacros(
PG.pl,
PGchoicemacros.pl,
PGbasicmacros.pl,
PGanswermacros.pl,
PGauxiliaryFunctions.pl
);
TEXT(beginproblem());
$showPartialCorrectAnswers = 0;
$a = random(1, 10);
$b = random(10, 10);
$c = random(10, 10);
$a2 = 2 * $a; $b2 = 2 * $b; $c2 = 2 * $c;
$ans = "x^2 + y^2 + z^2 + ($a2*x + $b2*y + $c2*z)";
BEGIN_TEXT
$PAR
Find an equation of the sphere that passes through the origin and whose center
is ($a, $b, $c).
$PAR
{ ans_rule(60) } = 0
$BR Note that you must put everything on the left hand side of the equation
and that we desire the coefficients of the quadratic terms to be 1.
END_TEXT
ANS(fun_cmp($ans, vars=>3));
ENDDOCUMENT();
===================================================================
Any ideas what might be wrong here? Are the standard problems supposed to be error free?
Regards,
Bill Hart.
< Post or View Comments >
