version 1.1, 2002/06/06 08:56:43
|
version 1.6, 2007/01/23 21:16:50
|
Line 1
|
Line 1
|
<problem> |
<problem> |
<script type="loncapa/perl"># Enter computations here
|
<script type="loncapa/perl"> |
|
$k=&random(3,6,1); |
</script> |
$formula="a*x^$k"; |
<startouttext />Enter Question Text Here. <endouttext /> |
$m=$k-1; |
<formularesponse answer="$answer" id="11" samples=""> |
$derivative="$k*a*x^$m"; |
<responseparam name="tol" type="tolerance" description="Numerical Tolerance" default=".0001" /> |
</script> |
<textline size="50" /> |
|
<hintgroup> |
<startouttext /> |
</hintgroup> |
What is the derivative of <tt>$formula</tt> with respect to x? |
</formularesponse> |
<endouttext /> |
|
|
|
<formularesponse samples="a,x@-3,-3:3,3#4" answer="$derivative"> |
|
<responseparam description="Numerical Tolerance" type="tolerance" default="0.00001" name="tol" /> |
|
<textline size="25" /> |
|
</formularesponse> |
|
|
</problem> |
</problem> |
|
|