[npl] / trunk / NationalProblemLibrary / ASU-topics / set119LinearSystems / p18.pg Repository: Repository Listing bbplugincoursesdistsnplrochestersystemwww

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

Revision 267 Revision 268
28"PGgraphmacros.pl", 28"PGgraphmacros.pl",
30); 30);
31 31
32TEXT(&beginproblem); 32TEXT(beginproblem());
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