![]() ![]() | ![]() |
* 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: