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

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

Revision 267 Revision 268
28"PGauxiliaryFunctions.pl", 28"PGauxiliaryFunctions.pl",
29"PGmatrixmacros.pl" 29"PGmatrixmacros.pl"
30); 30);
31 31
32TEXT(&beginproblem); 32TEXT(beginproblem());
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
92END_TEXT 92END_TEXT
93 93
94 94
95 95
96&ANS(arith_num_cmp(\$a[\$tag1])); 96ANS(num_cmp(\$a[\$tag1], mode=>"arith"));
97&ANS(arith_num_cmp(\$b[\$tag1])); 97ANS(num_cmp(\$b[\$tag1], mode=>"arith"));
98&ANS(arith_num_cmp(\$c[\$tag1])); 98ANS(num_cmp(\$c[\$tag1], mode=>"arith"));
99&ANS(arith_num_cmp(\$d[\$tag1])); 99ANS(num_cmp(\$d[\$tag1], mode=>"arith"));
100 100
101# row 2 101# row 2
102&ANS(arith_num_cmp(\$a[\$tag2])); 102ANS(num_cmp(\$a[\$tag2], mode=>"arith"));
103&ANS(arith_num_cmp(\$b[\$tag2])); 103ANS(num_cmp(\$b[\$tag2], mode=>"arith"));
104&ANS(arith_num_cmp(\$c[\$tag2])); 104ANS(num_cmp(\$c[\$tag2], mode=>"arith"));
105&ANS(arith_num_cmp(\$d[\$tag2])); 105ANS(num_cmp(\$d[\$tag2], mode=>"arith"));
106 106
107# row 3 107# row 3
108&ANS(arith_num_cmp(\$a[\$tag3])); 108ANS(num_cmp(\$a[\$tag3], mode=>"arith"));
109&ANS(arith_num_cmp(\$b[\$tag3])); 109ANS(num_cmp(\$b[\$tag3], mode=>"arith"));
110&ANS(arith_num_cmp(\$c[\$tag3])); 110ANS(num_cmp(\$c[\$tag3], mode=>"arith"));
111&ANS(arith_num_cmp(\$d[\$tag3])); 111ANS(num_cmp(\$d[\$tag3], mode=>"arith"));
112 112
113 113
114 114
115ENDDOCUMENT(); # This should be the last executable line in the problem. 115ENDDOCUMENT(); # This should be the last executable line in the problem.

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