--- loncom/homework/templates/SimpleFormula.problem 2005/01/31 11:17:04 1.5 +++ loncom/homework/templates/SimpleFormula.problem 2009/07/06 17:12:47 1.7 @@ -1,10 +1,15 @@ <problem> -<script type="loncapa/perl">$k=&random(3,6,1); + +<script type="loncapa/perl"> +$k=&random(3,6,1); $formula="a*x^$k"; $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"> <responseparam description="Numerical Tolerance" type="tolerance" default="0.00001" name="tol" /> @@ -12,4 +17,3 @@ $derivative="$k*a*x^$m";</script> </formularesponse> </problem> -