[npl] / trunk / NationalProblemLibrary / ASU-topics / setComplexNumbers / zhu6.pg Repository:
ViewVC logotype

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 449 - (download) (annotate)
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 
   22 loadMacros(
   23 "PG.pl",
   24 "PGbasicmacros.pl",
   25 "PGchoicemacros.pl",
   26 "PGanswermacros.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
   58 # "answer evaluator" to use, and the correct answer.
   59 #
   60 
   61 ANS(num_cmp($ans1));
   62 
   63 ENDDOCUMENT();        # This should be the last executable line in the problem.
   64 

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9