It
is only for one student as far as I can tell. The code for the problem
follows. It sounded like more a problem with how webwork understands
the input. The code for the problem follows.
Holly
##DESCRIPTION
## Evalute a limit of a fraction of two polynomials,
## involves factoring
##ENDDESCRIPTION
##KEYWORDS('limits', 'factoring')
DOCUMENT(); # This should be the first executable line in the problem.
loadMacros(
PG.pl,
PGbasicmacros.pl,
PGchoicemacros.pl,
PGanswermacros.pl,
PGauxiliaryFunctions.pl
);
TEXT(&beginproblem);
$showPartialCorrectAnswers = 1;
@rt = (4,9,16,25,36);
$i1 = random(0,4,1);
$c = random(1,10,1);
$a = $rt[$i1];
$b = $a+$c;
$a2 = $a**.5;
TEXT(EV2(<<EOT));
Evaluate the limit
[ lim_{ x rightarrow $b } frac {sqrt{x-$c}-$a2 }{x-$b}
]
$BR {ans_rule(10) }
$BR
EOT
$ans = 1/(2*$a2);
&ANS(num_cmp($ans));
ENDDOCUMENT(); # This should be the last executable line in the problem.
<| Post or View Comments |>
|