Annotation of loncom/homework/templates/HintFormula.problem, revision 1.4
1.1 www 1: <problem>
1.4 ! bisitz 2:
! 3: <script type="loncapa/perl">
1.1 www 4: $a1=&random(3,6,1);
5: $e1=&random(3,6,1);
6: $a2=&random(6,8,1);
7: $e2=&random(6,8,1);
8: $da1=$a1*$e1;
9: $da2=$a2*$e2;
10: $de1=$e1-1;
11: $de2=$e2-1;
12: @derivative=($da1.'t^'.$de1,$da2.'t^'.$de2);
13: @wrongderivative=($a1.'t^'.$de1,$a2.'t^'.$de2);
1.4 ! bisitz 14: </script>
! 15:
! 16: <startouttext />
1.2 albertel 17: What is the derivative of
1.4 ! bisitz 18: <m eval="on">\[\left(\begin{array}{c}$a1 t^$e1\\ $a2 t^$e2\end{array}\right)\]</m> with respect to <m>$ t $</m>?
! 19: <endouttext />
! 20:
! 21: <formularesponse answer="@derivative">
! 22: <textline readonly="no" size="25" />
! 23: <hintgroup showoncorrect="no">
! 24: <formulahint answer="@wrongderivative" name="nomulti"></formulahint>
! 25: <hintpart on="nomulti">
! 26: <startouttext />You need to multiply with the original exponent.<endouttext />
! 27: </hintpart>
! 28: </hintgroup>
! 29: </formularesponse>
! 30:
1.1 www 31: </problem>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>