[npl] / trunk / NationalProblemLibrary / FortLewis / Algebra / 9-2-Quadratic-expressions / MCH1-9-2-05-Quadratic-expressions.pg Repository: Repository Listing bbplugincoursesdistsnplrochestersystemwww

Revision 1604 Revision 1605
2## Quadratic functions, expressions, and equations 2## Quadratic functions, expressions, and equations
3## ENDDESCRIPTION 3## ENDDESCRIPTION
4 4
6 6
7## DBsubject('Algebra') 7## DBsubject('Algebra')
8## BookTitle('Algebra: Form and Function')
10## BookChapter('Quadratic Functions, Expressions, and Equations') 8## DBchapter('Quadratic Functions, Expressions, and Equations')
13## Date('01/01/10') 10## Date('01/01/10')
14## Author('Paul Pearson') 11## Author('Paul Pearson')
15## Institution('Fort Lewis College') 12## Institution('Fort Lewis College')
16## TitleText1('Algebra: Form and Function') 13## TitleText1('Algebra Form and Function')
17## EditionText1('1') 14## EditionText1('1')
18## AuthorText1('McCallum, Connally, and Hughes-Hallett') 15## AuthorText1('McCallum, Connally, and Hughes-Hallett')
19## Section1('9.2') 16## Section1('9.2')
20## Problem1('5') 17## Problem1('5')
21 18
40 37
41\$h = non_zero_random(-2,2,1); 38\$h = non_zero_random(-2,2,1);
42\$k = non_zero_random(-5,5,1); 39\$k = non_zero_random(-5,5,1);
43while (\$h==\$k) { \$k = non_zero_random(-5,5,1); } 40while (\$h==\$k) { \$k = non_zero_random(-5,5,1); }
44\$yint = random(-1,1,2) * random(2,6,1); 41\$yint = random(-1,1,2) * random(2,6,1);
42while (\$yint==\$k) { \$yint = random(-1,1,2) * random(2,6,1); }
45 43
46\$p = \$yint - \$k; 44\$p = \$yint - \$k;
47\$q = \$h * \$h; 45\$q = \$h * \$h;
48 46
49while (\$p == \$q || \$p == -\$q) { 47while (\$p == \$q || \$p == -\$q) {
79###################################### 77######################################