Return to SimpleFormulaCAS.problem CVS log | Up to [LON-CAPA] / loncom / homework / templates |
* Templates for formula and mathresponse * Adding documentation to the manual * stringresponse, etc, are not a subsubsection of "Foils" in author manual
<problem> <script type="loncapa/perl">$k=&random(3,6,1); $formula="a*x^$k"; $m=$k-1; $derivative="$k*a*x^$m";</script> <startouttext />What is the derivative of <tt>$formula</tt> with respect to x?<endouttext /> <formularesponse answer="$derivative"> <responseparam description="Numerical Tolerance" type="tolerance" default="0.00001" name="tol" /> <textline size="25" /> </formularesponse> </problem>