[system] / trunk / webwork-modperl / doc / parser / problems / sample07.pg Repository:
ViewVC logotype

Diff of /trunk/webwork-modperl/doc/parser/problems/sample07.pg

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2612 Revision 2613
13 13
14TEXT(beginproblem()); 14TEXT(beginproblem());
15 15
16########################################################## 16##########################################################
17# 17#
18# Use Numeric context 18# The setup
19# 19#
20 20
21Context('Numeric'); 21Context('Numeric');
22 22
23$a = Real(random(2,6,1)); 23$a = Real(random(2,6,1));
28########################################################## 28##########################################################
29# 29#
30# The problem text 30# The problem text
31# 31#
32 32
33Context()->texStrings;
33BEGIN_TEXT 34BEGIN_TEXT
35
34Suppose the legs of a triangle are of length \(\{$a->TeX\}\) and 36Suppose the legs of a triangle are of length \($a\) and \($b\).$BR
35\(\{$b->TeX\}\).$BR
36Then the hypoteneuse is of length \{ans_rule(20)\}. 37Then the hypoteneuse is of length \{ans_rule(20)\}.
38
37END_TEXT 39END_TEXT
40Context()->normalStrings();
38 41
39########################################################### 42###########################################################
40# 43#
41# The answer 44# The answer
42# 45#

Legend:
Removed from v.2612  
changed lines
  Added in v.2613

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9