<problem >
<script type="loncapa/perl">
$coeff1=&random(1,5,.1);
$coeff2=&random(1,5,.1);
$power1=&random(1,4,1);
$power2=&random(1,4,1);
$answer="$coeff1*x^$power1+$coeff2*y^$power2";
</script >
<startouttext />Answer is <m eval="on">$ $answer $</m ><endouttext />
<formularesponse samples="x,y@1,-1:3,10#10;10,1.01:1000,-1000#4" answer="$answer">
<responseparam name="tol" type="tolerance" description="Numerical Tolerance"
default="1%" />
<textline size="50" />
<hintgroup >
</hintgroup >
</formularesponse >
</problem >
The samples is supposed to be the points you sample the equation
at. It lists the variables first (comma seperated) then an @ then
(
(a comma seperated list of numbers equal to the number of variables)
or
(a comma seperated list of numbers equal to the number of variables,
followed by an : followed by a comma seperated list of numbers equal
to the number of variables, followed by a # folowed by an integer)
)
Then optionally a ; and more of the numbers
|