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

Diff of /trunk/NationalProblemLibrary/FortLewis/Algebra/9-2-Quadratic-expressions/MCH1-9-2-05-Quadratic-expressions.pg

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1604 Revision 1605
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);
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######################################
80# Answer evaluation 78# Answer evaluation
81 79
82$showPartialCorrectAnswers = 1; 80$showPartialCorrectAnswers = 1;
83 81
84ANS($answer->cmp() ); 82ANS( $answer->cmp() );
85 83
86
87COMMENT('MathObject version');
88ENDDOCUMENT(); 84ENDDOCUMENT();

Legend:
Removed from v.1604  
changed lines
  Added in v.1605

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9