Annotation of loncom/homework/templates/SimpleFormula.problem, revision 1.7
1.5 www 1: <problem>
1.7 ! bisitz 2:
! 3: <script type="loncapa/perl">
1.6 albertel 4: $k=&random(3,6,1);
1.5 www 5: $formula="a*x^$k";
6: $m=$k-1;
1.6 albertel 7: $derivative="$k*a*x^$m";
1.7 ! bisitz 8: </script>
1.5 www 9:
1.7 ! bisitz 10: <startouttext />
1.6 albertel 11: What is the derivative of <tt>$formula</tt> with respect to x?
1.7 ! bisitz 12: <endouttext />
1.5 www 13:
1.7 ! bisitz 14: <formularesponse samples="a,x@-3,-3:3,3#4" answer="$derivative">
! 15: <responseparam description="Numerical Tolerance" type="tolerance" default="0.00001" name="tol" />
! 16: <textline size="25" />
! 17: </formularesponse>
1.5 www 18:
19: </problem>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>