Annotation of loncom/homework/templates/HintFormula.problem, revision 1.2

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>