[system] / trunk / webwork2 / courses.dist / modelCourse / templates / setOrientation / prob11.pg Repository: Repository Listing bbplugincoursesdistsnplrochestersystemwww

# View of /trunk/webwork2/courses.dist/modelCourse/templates/setOrientation/prob11.pg

Wed Sep 15 18:09:44 2010 UTC (2 years, 9 months ago) by gage
File size: 1794 byte(s)
```add () after beginproblem

```

```    1 DOCUMENT();        # This should be the first executable line in the problem.
2
4   "PGstandard.pl",
5   "MathObjects.pl",
6   "PGunion.pl",
7   "parserOrientation.pl",
8   "PGcourse.pl",
9 );
10
12
13 TEXT(beginproblem());
14 Title("Multiple Answers in One Blank");
15
16 ##############################################
17
18 Context("Numeric");
19
20 \$a = random(1,5,1);
21 \$f = Formula("1/(x^2-\$a^2)")->reduce;
22
23 Context()->texStrings;
24 BEGIN_TEXT
25
26 You may sometimes be asked to provide more than one answer in a single
27 answer blank.  For example, you may need to enter all the values where
28 a function is not defined.  In this case, you should separate your
30 \${BITALIC}list\${EITALIC} in \$WW.  Note that you need not enter
31 multiple answers for a list; a single number is a legal answer (there
32 might only be one point where the function is undefined, for
33 instance).
34 \$PAR
35
36 \$BBLOCKQUOTE
37 The function \(\displaystyle f(x)=\$f\) is not defined at these \(x\) values: \{ans_rule(20)\}.
38 \$EBLOCKQUOTE
39
40 END_TEXT
41 Context()->normalStrings;
42
43 ANS(List(\$a,-\$a)->cmp);
44
45 ##################################################
46
47 \$a = random(1,5,1);
48 \$f = Formula("1/(x^2+\$a^2)")->reduce;
49
50 Context()->texStrings;
51 BEGIN_TEXT
52
53 When you are asked for a list of numbers, another possible answer is
54 that there are \${BITALIC}no\${EITALIC} numbers that satisfy the
55 requirements.  In that case, you should enter \${LQ}\{student
57 \$PAR
58
59 \$BBLOCKQUOTE
60 The function \(\displaystyle f(x)=\$f\) is not defined at these \(x\) values: \{ans_rule(20)\}.
61 \$EBLOCKQUOTE
62
63 END_TEXT
64 Context()->normalStrings;
65
66 ANS(String('NONE')->cmp);
67
68 ##################################################
69
70 ENDDOCUMENT();        # This should be the last executable line in the problem.
```