File:
[LON-CAPA] /
loncom /
homework /
templates /
SimpleFormula.problem
Revision
1.6:
download - view:
text,
annotated -
select for diffs
Tue Jan 23 21:16:50 2007 UTC (17 years, 7 months ago) by
albertel
Branches:
MAIN
CVS tags:
version_2_9_X,
version_2_9_1,
version_2_9_0,
version_2_8_X,
version_2_8_99_1,
version_2_8_99_0,
version_2_8_2,
version_2_8_1,
version_2_8_0,
version_2_7_X,
version_2_7_99_1,
version_2_7_99_0,
version_2_7_1,
version_2_7_0,
version_2_6_X,
version_2_6_99_1,
version_2_6_99_0,
version_2_6_3,
version_2_6_2,
version_2_6_1,
version_2_6_0,
version_2_5_X,
version_2_5_99_1,
version_2_5_99_0,
version_2_5_2,
version_2_5_1,
version_2_5_0,
version_2_4_X,
version_2_4_99_0,
version_2_4_2,
version_2_4_1,
version_2_4_0,
version_2_3_99_0,
bz5969,
HEAD,
GCI_2,
GCI_1,
BZ5971-printing-apage,
BZ5434-fox
- trying to make the problem code prettier
- addin sample points to HintFormula.problem
- remove tolerance specfication from CAS fomularesponse
<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 samples="a,x@-3,-3:3,3#4" answer="$derivative">
<responseparam description="Numerical Tolerance" type="tolerance" default="0.00001" name="tol" />
<textline size="25" />
</formularesponse>
</problem>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>