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, 3 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

<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>


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