[npl] / trunk / NationalProblemLibrary / Dartmouth / setStewartCh15S2 / problem_4.pg Repository:
ViewVC logotype

Diff of /trunk/NationalProblemLibrary/Dartmouth/setStewartCh15S2/problem_4.pg

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

Revision 156 Revision 197
30## Do NOT show partial correct answers 30## Do NOT show partial correct answers
31$showPartialCorrectAnswers = 0; 31$showPartialCorrectAnswers = 0;
32 32
33$r = random(2, 20); 33$r = random(2, 20);
34 34
35@answers = ( 35$mc[1] = new_multiple_choice();
36$mc[1]->qa('The largest set on which the function
37\(f(x,y) = 1/($r - x^2 - y^2)\)
38is continuous is:',
36 "All of the xy-plane except the circle \(x^2 + y^2 = $r\)", 39 'All of the xy-plane except the circle \(x^2 + y^2 = $r\)'
40);
41$mc[1]->extra(
37 "All of the xy-plane", 42 'All of the xy-plane',
38 "The interior of the circle \(x^2 + y^2 = $r\)", 43 'The interior of the circle \(x^2 + y^2 = $r\)',
39 "The exterior of the circle \(x^2 + y^2 = $r\)", 44 'The exterior of the circle \(x^2 + y^2 = $r\)',
40 "The interior of the circle \(x^2 + y^2 = $r\), plus the circle" 45 'The interior of the circle \(x^2 + y^2 = $r\), plus the circle'
41 ); 46);
42@permutation = NchooseK(5,5); 47
43
44## Ok, we are ready to begin the problem... 48## Ok, we are ready to begin the problem...
45## 49##
46TEXT(beginproblem()); 50TEXT(beginproblem());
47 51
52BEGIN_TEXT
53$PAR
54\{ $mc[1]->print_q() \}
48 55
49BEGIN_TEXT 56\{ $mc[1]->print_a() \}
50$BR 57$PAR
51 58
52The largest set on which the function \(f(x,y) = 1/($r - x^2 - y^2)\)
53is continuous is \{ans_rule()\}
54
55$PAR
56END_TEXT 59END_TEXT
57 60
58 TEXT(OL(@answers[@permutation])); 61ANS(radio_cmp($mc[1]->correct_ans));
59@inverted_alphabet = @ALPHABET[invert(@permutation)];
60 62
61ANS(str_cmp($inverted_alphabet[0])); 63
64
62 65
63ENDDOCUMENT(); 66ENDDOCUMENT();
64 67
65 68
66 69

Legend:
Removed from v.156  
changed lines
  Added in v.197

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9