Some
of my students get a pink warning screen on this problem when they
submit the correct answer. Some do not. One seed that gives the pink is
1333. The warning is
======================================= Software Warnings
WeBWorK has encountered warnings while attempting to process this
problem. It is likely that this indicates an error or ambiguity in the
problem itself. If you are a student, contact your professor to have
the problem corrected. If you are a professor, please consut the
warning output below for more informaiton.
Warning messages
* A unique adapted answer could not be determined. Possibly the parameters have coefficient zero.
dim = 1 base_matrix is [ 1.000000000000E+00 ]
====================================================
The problem goes away, at least with this seed, if I change
function_cmp_up_to_constant to function_cmp. However, I really don't
want to do this.
Any suggestions?
Here is the problem source:
##DESCRIPTION
##KEYWORDS('integrals', 'substitution')
##ENDDESCRIPTION
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;
$a = random(5,50,1);
$b = random(3,6,1);
$c = $b  1;
$d = random(1,11,1);
$power = $a + 1;
$coeff1 = 1 / $power;
$coeff2 = 1 / $b;
$funct = "(1/$power) * (1/$b) * (x^$b  $d)^$power";
TEXT(EV2(<<EOT));
Evaluate the integral
[ int x^$c (x^$b  $d)^{$a} dx , ]
by making the substitution ( u = x^$b $d ).
$BR $BR {ans_rule(30) }
$PAR
NOTE: Your answer should be in terms of x and not u.
EOT
$ans = $funct;
&ANS(function_cmp_up_to_constant($ans));
ENDDOCUMENT(); # This should be the last executable line in the problem.
< Post or View Comments >
