Parent Directory
|
Revision Log
add () after beginproblem
1 DOCUMENT(); # This should be the first executable line in the problem. 2 3 loadMacros( 4 "PGstandard.pl", 5 "MathObjects.pl", 6 "PGunion.pl", 7 "parserOrientation.pl", 8 "PGcourse.pl", 9 ); 10 11 $showPartialCorrectAnswers = 1; 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 29 answers by commas. Such an answer is called a 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 56 "NONE"\}${RQ} as your answer. 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.
| aubreyja at gmail dot com | ViewVC Help |
| Powered by ViewVC 1.0.9 |