File:
[LON-CAPA] /
loncom /
homework /
templates /
SimpleFormulaCAS.problem
Revision
1.2:
download - view:
text,
annotated -
select for diffs
Tue Jan 23 21:16:50 2007 UTC (17 years, 8 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
1: <problem>
2: <script type="loncapa/perl">
3: $k=&random(3,6,1);
4: $formula="a*x^$k";
5: $m=$k-1;
6: $derivative="$k*a*x^$m";
7: </script>
8:
9: <startouttext />
10: What is the derivative of <tt>$formula</tt> with respect to x?
11: <endouttext />
12:
13: <formularesponse answer="$derivative">
14: <textline size="25" />
15: </formularesponse>
16:
17: </problem>
18:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>