| … | |
… | |
| 27 | "PGanswermacros.pl", |
27 | "PGanswermacros.pl", |
| 28 | "PGauxiliaryFunctions.pl", |
28 | "PGauxiliaryFunctions.pl", |
| 29 | "PGmatrixmacros.pl" |
29 | "PGmatrixmacros.pl" |
| 30 | ); |
30 | ); |
| 31 | |
31 | |
| 32 | TEXT(&beginproblem); |
32 | TEXT(beginproblem()); |
| 33 | $showPartialCorrectAnswers = 1; |
33 | $showPartialCorrectAnswers = 1; |
| 34 | |
34 | |
| 35 | $a1 = non_zero_random(-9,9,1); |
35 | $a1 = non_zero_random(-9,9,1); |
| 36 | $b1 = non_zero_random(-99,99,1); |
36 | $b1 = non_zero_random(-99,99,1); |
| 37 | $c1 = non_zero_random(-99,99,1); |
37 | $c1 = non_zero_random(-99,99,1); |
| … | |
… | |
| 91 | |
91 | |
| 92 | END_TEXT |
92 | END_TEXT |
| 93 | |
93 | |
| 94 | |
94 | |
| 95 | |
95 | |
| 96 | &ANS(arith_num_cmp($a[$tag1])); |
96 | ANS(num_cmp($a[$tag1], mode=>"arith")); |
| 97 | &ANS(arith_num_cmp($b[$tag1])); |
97 | ANS(num_cmp($b[$tag1], mode=>"arith")); |
| 98 | &ANS(arith_num_cmp($c[$tag1])); |
98 | ANS(num_cmp($c[$tag1], mode=>"arith")); |
| 99 | &ANS(arith_num_cmp($d[$tag1])); |
99 | ANS(num_cmp($d[$tag1], mode=>"arith")); |
| 100 | |
100 | |
| 101 | # row 2 |
101 | # row 2 |
| 102 | &ANS(arith_num_cmp($a[$tag2])); |
102 | ANS(num_cmp($a[$tag2], mode=>"arith")); |
| 103 | &ANS(arith_num_cmp($b[$tag2])); |
103 | ANS(num_cmp($b[$tag2], mode=>"arith")); |
| 104 | &ANS(arith_num_cmp($c[$tag2])); |
104 | ANS(num_cmp($c[$tag2], mode=>"arith")); |
| 105 | &ANS(arith_num_cmp($d[$tag2])); |
105 | ANS(num_cmp($d[$tag2], mode=>"arith")); |
| 106 | |
106 | |
| 107 | # row 3 |
107 | # row 3 |
| 108 | &ANS(arith_num_cmp($a[$tag3])); |
108 | ANS(num_cmp($a[$tag3], mode=>"arith")); |
| 109 | &ANS(arith_num_cmp($b[$tag3])); |
109 | ANS(num_cmp($b[$tag3], mode=>"arith")); |
| 110 | &ANS(arith_num_cmp($c[$tag3])); |
110 | ANS(num_cmp($c[$tag3], mode=>"arith")); |
| 111 | &ANS(arith_num_cmp($d[$tag3])); |
111 | ANS(num_cmp($d[$tag3], mode=>"arith")); |
| 112 | |
112 | |
| 113 | |
113 | |
| 114 | |
114 | |
| 115 | ENDDOCUMENT(); # This should be the last executable line in the problem. |
115 | ENDDOCUMENT(); # This should be the last executable line in the problem. |