File:  [LON-CAPA] / loncom / homework / templates / SimpleFormulaCAS.problem
Revision 1.1: download - view: text, annotated - select for diffs
Mon Jan 22 21:48:55 2007 UTC (17 years, 5 months ago) by www
Branches: MAIN
CVS tags: HEAD
* Templates for formula and mathresponse
* Adding documentation to the manual
* stringresponse, etc, are not a subsubsection of "Foils" in author manual

    1: <problem>
    2: <script type="loncapa/perl">$k=&random(3,6,1);
    3: $formula="a*x^$k";
    4: $m=$k-1;
    5: $derivative="$k*a*x^$m";</script>
    6: 
    7: <startouttext />What is the derivative of <tt>$formula</tt> with respect to x?<endouttext />
    8: 
    9: <formularesponse answer="$derivative">
   10:     <responseparam description="Numerical Tolerance" type="tolerance" default="0.00001" name="tol" />
   11:     <textline size="25" />    
   12: </formularesponse>
   13: 
   14: </problem>
   15: 

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