| … | |
… | |
| 27 | "PGanswermacros.pl", |
27 | "PGanswermacros.pl", |
| 28 | "PGgraphmacros.pl", |
28 | "PGgraphmacros.pl", |
| 29 | "extraAnswerEvaluators.pl" |
29 | "extraAnswerEvaluators.pl" |
| 30 | ); |
30 | ); |
| 31 | |
31 | |
| 32 | TEXT(&beginproblem); |
32 | TEXT(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); |
| 37 | do {$d = non_zero_random(-9,9,1);} until (($a*$d-$b*$c) != 0); |
37 | do {$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 | |
| 62 | END_TEXT |
62 | END_TEXT |
| 63 | |
63 | |
| 64 | &ANS(arith_num_cmp($x)); |
64 | ANS(num_cmp($x, mode=>"arith")); |
| 65 | &ANS(arith_num_cmp($y)); |
65 | ANS(num_cmp($y, mode=>"arith")); |
| 66 | |
66 | |
| 67 | ENDDOCUMENT(); # This should be the last executable line in the problem. |
67 | ENDDOCUMENT(); # This should be the last executable line in the problem. |