File:
[LON-CAPA] /
loncom /
homework /
templates /
HintFormula.problem
Revision
1.4:
download - view:
text,
annotated -
select for diffs
Mon Jul 6 17:12:47 2009 UTC (15 years, 7 months ago) by
bisitz
Branches:
MAIN
CVS tags:
version_2_9_99_0,
version_2_12_X,
version_2_11_X,
version_2_11_6_msu,
version_2_11_6,
version_2_11_5_msu,
version_2_11_5,
version_2_11_4_uiuc,
version_2_11_4_msu,
version_2_11_4,
version_2_11_3_uiuc,
version_2_11_3_msu,
version_2_11_3,
version_2_11_2_uiuc,
version_2_11_2_msu,
version_2_11_2_educog,
version_2_11_2,
version_2_11_1,
version_2_11_0_RC3,
version_2_11_0_RC2,
version_2_11_0_RC1,
version_2_11_0,
version_2_10_X,
version_2_10_1,
version_2_10_0_RC2,
version_2_10_0_RC1,
version_2_10_0,
loncapaMITrelate_1,
language_hyphenation_merge,
language_hyphenation,
bz6209-base,
bz6209,
bz2851,
PRINT_INCOMPLETE_base,
PRINT_INCOMPLETE,
HEAD,
GCI_3,
BZ4492-merge,
BZ4492-feature_horizontal_radioresponse,
BZ4492-feature_Support_horizontal_radioresponse,
BZ4492-Support_horizontal_radioresponse
Consistent problem templates:
- New line after each tag (not for texts in foils)
- One empty row after each end tag and before new start tag for second level tags
- No indentation for second level tags, e.g. <script>
- Four white spaces as indentation for each further sub level
Exceptions:
-Content (mostly text) in separate line(s): no indentation
- Concept groups: same indentation as foilgroup
(allows to insert code from problems without concept groups without changing the indentation and vice versa)
- No new line at end of template
- Removed new lines from within the middle of default texts
- Added one blank each after "<m>$" and before "$</m>" to ensure no misinterpretation neither by human nor by machine (e.g. "<m>$x" is not "<m>$ $x")
- Replaced deprecated font tag in <instructorcomment> by CSS
- Removed dos line endings
- dos2unix conversion
(ClickImageExample.problem, RandomLabelExample.problem, SimpleMatching.problem)
1: <problem>
2:
3: <script type="loncapa/perl">
4: $a1=&random(3,6,1);
5: $e1=&random(3,6,1);
6: $a2=&random(6,8,1);
7: $e2=&random(6,8,1);
8: $da1=$a1*$e1;
9: $da2=$a2*$e2;
10: $de1=$e1-1;
11: $de2=$e2-1;
12: @derivative=($da1.'t^'.$de1,$da2.'t^'.$de2);
13: @wrongderivative=($a1.'t^'.$de1,$a2.'t^'.$de2);
14: </script>
15:
16: <startouttext />
17: What is the derivative of
18: <m eval="on">\[\left(\begin{array}{c}$a1 t^$e1\\ $a2 t^$e2\end{array}\right)\]</m> with respect to <m>$ t $</m>?
19: <endouttext />
20:
21: <formularesponse answer="@derivative">
22: <textline readonly="no" size="25" />
23: <hintgroup showoncorrect="no">
24: <formulahint answer="@wrongderivative" name="nomulti"></formulahint>
25: <hintpart on="nomulti">
26: <startouttext />You need to multiply with the original exponent.<endouttext />
27: </hintpart>
28: </hintgroup>
29: </formularesponse>
30:
31: </problem>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>