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

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

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