version 1.5, 2005/01/31 11:17:04
|
version 1.7, 2009/07/06 17:12:47
|
Line 1
|
Line 1
|
<problem> |
<problem> |
<script type="loncapa/perl">$k=&random(3,6,1); |
|
|
<script type="loncapa/perl"> |
|
$k=&random(3,6,1); |
$formula="a*x^$k"; |
$formula="a*x^$k"; |
$m=$k-1; |
$m=$k-1; |
$derivative="$k*a*x^$m";</script> |
$derivative="$k*a*x^$m"; |
|
</script> |
|
|
<startouttext />What is the derivative of <tt>$formula</tt> with respect to x?<endouttext /> |
<startouttext /> |
|
What is the derivative of <tt>$formula</tt> with respect to x? |
|
<endouttext /> |
|
|
<formularesponse samples="a,x@-3,-3:3,3#4" answer="$derivative"> |
<formularesponse samples="a,x@-3,-3:3,3#4" answer="$derivative"> |
<responseparam description="Numerical Tolerance" type="tolerance" default="0.00001" name="tol" /> |
<responseparam description="Numerical Tolerance" type="tolerance" default="0.00001" name="tol" /> |
Line 12 $derivative="$k*a*x^$m";</script>
|
Line 17 $derivative="$k*a*x^$m";</script>
|
</formularesponse> |
</formularesponse> |
|
|
</problem> |
</problem> |
|
|