[npl] / trunk / NationalProblemLibrary / ASU-topics / setFunctions / srw2_2_7.pg Repository: Repository Listing bbplugincoursesdistsnplrochestersystemwww

# View of /trunk/NationalProblemLibrary/ASU-topics/setFunctions/srw2_2_7.pg

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

```    1 ## DESCRIPTION
2 ## Algebra
3 ## ENDDESCRIPTION
4
5 ## KEYWORDS('algebra','function','domain','range','graph')
6 ## Tagged by cmd6a 8/6/06
7
8 ## DBsubject('Algebra')
9 ## DBchapter('Functions')
10 ## DBsection('Domain and Range')
11 ## Date('')
12 ## Author('')
13 ## Institution('ASU')
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 "PGasu.pl",
30 );
31
32 TEXT(beginproblem());
34
35
36 TEXT(EV2(<<EOT));
37 \$BBOLD Click on the graph to view the enlarged graph \$EBOLD
38 \$BR
39 Consider the function given in the following graph.
40 \$PAR \{ image("c2s2p7.gif") \} \$PAR
41 \$BR
42 What is its domain? \{ans_rule(25)\}
43 \$BR
44 What is its range? \{ans_rule(25)\}
45 \$BR
46 \$BBOLD
47 Note: \$EBOLD
48 Write the answer in interval notation.
49 EOT
50
51 \$ans1=-3;
52 \$ans2=3;
53 \$ans3=-1;
54 \$ans4=2;
55
56 ANS(interval_cmp("[\$ans1,\$ans2]"));
57 ANS(interval_cmp("[\$ans3,\$ans4]"));
58
59 ENDDOCUMENT();        # This should be the last executable line in the problem.
```