| … | |
… | |
| 2 | ## Quadratic functions, expressions, and equations |
2 | ## Quadratic functions, expressions, and equations |
| 3 | ## ENDDESCRIPTION |
3 | ## ENDDESCRIPTION |
| 4 | |
4 | |
| 5 | ## KEYWORDS('quadratic functions') |
5 | ## KEYWORDS('quadratic functions') |
| 6 | |
6 | |
| 7 | ## DBsubject('Algebra') |
7 | ## DBsubject('Algebra') |
| 8 | ## BookTitle('Algebra: Form and Function') |
|
|
| 9 | ## DBchapter('Quadratic Functions') |
|
|
| 10 | ## BookChapter('Quadratic Functions, Expressions, and Equations') |
8 | ## DBchapter('Quadratic Functions, Expressions, and Equations') |
| 11 | ## DBsection('Quadratic Expressions') |
|
|
| 12 | ## DBsection('Working with Quadratic Expressions') |
9 | ## DBsection('Working with Quadratic Expressions') |
| 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); |
| 43 | while ($h==$k) { $k = non_zero_random(-5,5,1); } |
40 | while ($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); |
|
|
42 | while ($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 | |
| 49 | while ($p == $q || $p == -$q) { |
47 | while ($p == $q || $p == -$q) { |
| … | |
… | |
| 79 | ###################################### |
77 | ###################################### |
| 80 | # Answer evaluation |
78 | # Answer evaluation |
| 81 | |
79 | |
| 82 | $showPartialCorrectAnswers = 1; |
80 | $showPartialCorrectAnswers = 1; |
| 83 | |
81 | |
| 84 | ANS($answer->cmp() ); |
82 | ANS( $answer->cmp() ); |
| 85 | |
83 | |
| 86 | |
|
|
| 87 | COMMENT('MathObject version'); |
|
|
| 88 | ENDDOCUMENT(); |
84 | ENDDOCUMENT(); |