[npl] / trunk / NationalProblemLibrary / Union / setAlgebraAbsoluteValue / p1-abs-d.pg Repository: Repository Listing bbplugincoursesdistsnplrochestersystemwww

# View of /trunk/NationalProblemLibrary/Union/setAlgebraAbsoluteValue/p1-abs-d.pg

Tue Aug 8 15:08:53 2006 UTC (6 years, 9 months ago) by jjholt
File size: 1257 byte(s)
```Added tags.  --JH
```

```    1 ## DESCRIPTION
2 ## Algebra
3 ## ENDDESCRIPTION
4
5 ## KEYWORDS('algebra','absolute value','inequality')
6 ## Tagged by cmd6a 8/6/06
7
8 ## DBsubject('Algebra')
9 ## DBchapter('Equations and Inequalities')
10 ## DBsection('Absolute Value')
11 ## Date('9/9/03')
12 ## Author('K. Lesh')
13 ## Institution('Union College')
14 ## TitleText1('')
15 ## EditionText1('')
16 ## AuthorText1('')
17 ## Section1('')
18 ## Problem1('')
19
20 DOCUMENT();        # This should be the first executable line in the problem.
21
23    "PG.pl",
24    "PGbasicmacros.pl",
25    "PGchoicemacros.pl",
27    "PGauxiliaryFunctions.pl",
28    "PGunion.pl",        # Union College utilities
30    "PGcourse.pl",       # Customization file for the course
31 );
32
33 TEXT(beginproblem());
34
35 BEGIN_PROBLEM();
36
37 \$a = random(1,8,1);
38 \$b = random(2,10,1);
39 \$c = random(3,15,1);
40 \$min=(\$b-\$c)/(\$a);
41 \$max=(\$c+\$b)/(\$a);
42
43 BEGIN_TEXT
44 Solve the following inequality. Enter the answer in interval notation.
45 \[ |\$b-\${a}x| < \$c  \]
46 \$BR
48 \$PAR
49 \$INFINITY_UNION_MESSAGE
50 END_TEXT
51
53 ANS(num_union_cmp("(\$min,\$max)"));
54
55 END_PROBLEM();
56 ENDDOCUMENT();        # This should be the last executable line in the problem.;
57
58
59
```