[npl] / trunk / NationalProblemLibrary / Michigan / 5e / Chap10Sec1 / Q29.pg Repository: Repository Listing bbplugincoursesdistsnplrochestersystemwww

# Diff of /trunk/NationalProblemLibrary/Michigan/5e/Chap10Sec1/Q29.pg

Revision 2969 Revision 2970
88 \$gccu2 = ( \$g2c > \$g3c ) ? 3 : 2; 88 \$gccu2 = ( \$g2c > \$g3c ) ? 3 : 2;
89} elsif ( \$gmdiff == 2 && \$g1c == \$g3c ) { 89} elsif ( \$gmdiff == 2 && \$g1c == \$g3c ) {
90 \$g1c = (( \$g1c == 2 ) ? 1 : 2) if ( \$g1c == \$g3c ); 90 \$g1c = (( \$g1c == 2 ) ? 1 : 2) if ( \$g1c == \$g3c );
91 \$gccu1 = ( \$g1c > \$g3c ) ? 1 : 3; 91 \$gccu1 = ( \$g1c > \$g3c ) ? 1 : 3;
92 \$gccu2 = ( \$g1c > \$g3c ) ? 3 : 1; 92 \$gccu2 = ( \$g1c > \$g3c ) ? 3 : 1;
93} else { 93} elsif ( \$gmdiff == 3 ) {
94 \$g1c = (( \$g1c == 2 ) ? 1 : 2) if ( \$g1c == \$g2c ); 94 \$g1c = (( \$g1c == 2 ) ? 1 : 2) if ( \$g1c == \$g2c );
95 \$gccu1 = ( \$g1c > \$g2c ) ? 1 : 2; 95 \$gccu1 = ( \$g1c > \$g2c ) ? 1 : 2;
96 \$gccu2 = ( \$g1c > \$g2c ) ? 2 : 1; 96 \$gccu2 = ( \$g1c > \$g2c ) ? 2 : 1;
97} 97}
98 98
284\( g_3 = \) \{ \$g3match->menu() \} 284\( g_3 = \) \{ \$g3match->menu() \}
285 285
286END_TEXT 286END_TEXT
287Context()->normalStrings; 287Context()->normalStrings;
288 288
289ANS(\$fmatch->cmp() ); 289ANS( \$fmatch->cmp() );
290ANS(\$gmatch->cmp() ); 290ANS( \$gmatch->cmp() );
291ANS(\$apoint->cmp() ); 291ANS( \$apoint->cmp() );
292ANS(\$bpoint->cmp() ); 292ANS( \$bpoint->cmp() );
293ANS(\$f1match->cmp() ); 293ANS( \$f1match->cmp() );
294ANS(\$f2match->cmp() ); 294ANS( \$f2match->cmp() );
295ANS(\$f3match->cmp() ); 295ANS( \$f3match->cmp() );
296ANS(\$g1match->cmp() ); 296ANS( \$g1match->cmp() );
297ANS(\$g2match->cmp() ); 297ANS( \$g2match->cmp() );
298ANS(\$g3match->cmp() ); 298ANS( \$g3match->cmp() );
299 299
300Context()->texStrings; 300Context()->texStrings;
301SOLUTION(EV3(<<'END_SOLUTION')); 301SOLUTION(EV3(<<'END_SOLUTION'));
302\$PAR SOLUTION \$PAR 302\$PAR SOLUTION \$PAR
303 303
338\(g_3\) is \{ \$g3match->correct_ans() \}. 338\(g_3\) is \{ \$g3match->correct_ans() \}.
339 339
340END_SOLUTION 340END_SOLUTION
341Context()->normalStrings; 341Context()->normalStrings;
342 342
343
344COMMENT('MathObject version'); 343COMMENT('Uses MathObjects');
344
345ENDDOCUMENT(); 345ENDDOCUMENT();

Legend:
 Removed from v.2969 changed lines Added in v.2970