[npl] / trunk / NationalProblemLibrary / maCalcDB / setAlgebra04ExpressionsFactoring / sw1_4_45.pg Repository: Repository Listing bbplugincoursesdistsnplrochestersystemwww

# View of /trunk/NationalProblemLibrary/maCalcDB/setAlgebra04ExpressionsFactoring/sw1_4_45.pg

Wed Oct 19 17:03:53 2005 UTC (7 years, 7 months ago) by jj
File size: 1134 byte(s)
```Added subject tag.
```

```    1 ##DESCRIPTION
2 ##  Algebra problem: factor a quadratic equation
3 ##ENDDESCRIPTION
4
5 ##KEYWORDS('algebra', 'factoring')
6 ## hcao tagged and PAID on 2-20-2004
7
8 ## DBsubject('Algebra')
9 ## DBchapter('Basic Algebra')
10 ## DBsection('Algebraic Expressions')
11 ## Date('6/3/2002')
12 ## Author('')
13 ## Institution('')
14 ## TitleText1('College Algebra')
15 ## EditionText1('3')
16 ## AuthorText1('Stewart, Redlin, Watson')
17 ## Section1('1.4')
18 ## Problem1('45')
19 DOCUMENT();        # This should be the first executable line in the problem.
20
22 "PG.pl",
23 "PGbasicmacros.pl",
24 "PGchoicemacros.pl",
26 "PGauxiliaryFunctions.pl"
27 );
28
29 TEXT(&beginproblem);
31
32 \$a = random(1,4,1);
33 \$b = random(6,9,1);
34 \$t = -(\$a-\$b);
35 \$n = \$a*\$b;
36
37 TEXT(EV2(<<EOT));
38 Factor the polynomial \(x^2-\$t x-\$n\). Your answer can be written as
39 \((x+A)(x+B)\) where \(A \lt B\) \$BR and \(A\) equals:
40 \{ans_rule(10) \}
41 \$BR
42 EOT
43
44 \$ans = -\$b;
45 &ANS(std_num_cmp(\$ans));
46
47 TEXT(EV2(<<EOT));
48 and \(B\) equals:
49 \{ans_rule(10) \}
50 \$BR
51 EOT
52
53 \$ans =  \$a;
54 &ANS(std_num_cmp(\$ans));
55
56 ENDDOCUMENT();        # This should be the last executable line in the problem.
```