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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 319 - (download) (annotate)
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 
   22 loadMacros(
   23    "PG.pl",
   24    "PGbasicmacros.pl",
   25    "PGchoicemacros.pl",
   26    "PGanswermacros.pl",
   27    "PGauxiliaryFunctions.pl",
   28    "PGunion.pl",        # Union College utilities
   29    "unionAnswer.pl",    # Load answer-checker appropriate to the problem
   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
   47 Answer: \{ans_rule(35)\}
   48 $PAR
   49 $INFINITY_UNION_MESSAGE
   50 END_TEXT
   51 
   52 $showPartialCorrectAnswers = 0;
   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 

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9