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

1.1       www         1: <problem>
1.2     ! albertel    2:     <script type="loncapa/perl">
        !             3: $k=&random(3,6,1);
1.1       www         4: $formula="a*x^$k";
                      5: $m=$k-1;
1.2     ! albertel    6: $derivative="$k*a*x^$m";
        !             7:     </script>
1.1       www         8: 
1.2     ! albertel    9:     <startouttext />
        !            10: What is the derivative of <tt>$formula</tt> with respect to x?
        !            11:     <endouttext />
1.1       www        12: 
1.2     ! albertel   13:     <formularesponse answer="$derivative">
        !            14:         <textline size="25" />    
        !            15:     </formularesponse>
1.1       www        16: 
                     17: </problem>
                     18: 

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