[npl] / trunk / NationalProblemLibrary / ASU-topics / set119LinearSystems / p18.pg Repository:
ViewVC logotype

Diff of /trunk/NationalProblemLibrary/ASU-topics/set119LinearSystems/p18.pg

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

Revision 267 Revision 268
27"PGanswermacros.pl", 27"PGanswermacros.pl",
28"PGgraphmacros.pl", 28"PGgraphmacros.pl",
29"extraAnswerEvaluators.pl" 29"extraAnswerEvaluators.pl"
30); 30);
31 31
32TEXT(&beginproblem); 32TEXT(beginproblem());
33$showPartialCorrectAnswers = 1; 33$showPartialCorrectAnswers = 1;
34$a = non_zero_random(-8,8,2); 34$a = non_zero_random(-8,8,2);
35$b = random(-9,9,2); 35$b = random(-9,9,2);
36$c = random(-9,9,2); 36$c = random(-9,9,2);
37do {$d = non_zero_random(-9,9,1);} until (($a*$d-$b*$c) != 0); 37do {$d = non_zero_random(-9,9,1);} until (($a*$d-$b*$c) != 0);
59 59
60\( y= \) \{ans_rule(20) \} 60\( y= \) \{ans_rule(20) \}
61 61
62END_TEXT 62END_TEXT
63 63
64&ANS(arith_num_cmp($x)); 64ANS(num_cmp($x, mode=>"arith"));
65&ANS(arith_num_cmp($y)); 65ANS(num_cmp($y, mode=>"arith"));
66 66
67ENDDOCUMENT(); # This should be the last executable line in the problem. 67ENDDOCUMENT(); # This should be the last executable line in the problem.

Legend:
Removed from v.267  
changed lines
  Added in v.268

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9