[npl] / trunk / NationalProblemLibrary / ASU-topics / setComplexNumbers / zhu6.pg Repository: Repository Listing bbplugincoursesdistsnplrochestersystemwww

# View of /trunk/NationalProblemLibrary/ASU-topics/setComplexNumbers/zhu6.pg

Tue Jul 3 17:27:24 2007 UTC (5 years, 11 months ago) by jjholt
File size: 1339 byte(s)
```Updated Tags.  --JJH
```

```    1 ## DESCRIPTION
2 ## Calculus
3 ## ENDDESCRIPTION
4
5 ## KEYWORDS('numbers', 'complex')
6 ## Tagged by YL
7
8 ## DBsubject('Calculus')
9 ## DBchapter('Complex Numbers')
10 ## DBsection('Complex')
11 ## Date('')
12 ## Author('')
13 ## Institution('ASU')
14 ## TitleText1('Calculus')
15 ## EditionText1('5e')
16 ## AuthorText1('Stewart')
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"
29 );
30
31 TEXT(beginproblem());
32
33 #
34 # Now we do the randomization of variables, and other computations
35 # as needed for this problem.  Sometimes we compute the answers here.
36 #
37
38 \$a = random(1,9);
39 \$b = random(-3,2);
40
41 \$ans1 = (\$a+\$b)/2;
42
43 #
44 # Now the problem text itself, with ans_rule's to indicate where the
45 # answers go.  You can stop entering text, do more computations, and then
46 # start up again if you want.
47 #
48
49 BEGIN_TEXT
50 What is the average of \$a and \$b?
51   \$PAR
52   Average = \{ans_rule(40)\}
53 END_TEXT
54
55 #
56 # Tell WeBWork how to test if answers are right.  These should come in the
57 # same order as the answer blanks above.  You tell WeBWork both the type of