[npl] / trunk / NationalProblemLibrary / maCalcDB / setAlgebra01RealNumbers / sw1_2_12.pg Repository:
ViewVC logotype

View of /trunk/NationalProblemLibrary/maCalcDB/setAlgebra01RealNumbers/sw1_2_12.pg

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17 - (download) (annotate)
Wed Oct 19 17:03:53 2005 UTC (7 years, 7 months ago) by jj
File size: 1245 byte(s)
Added subject tag.

    1 #DESCRIPTION
    2 ##  Algebra problem: simplifying fraction
    3 ##ENDDESCRIPTION
    4 
    5 ##KEYWORDS('algebra', 'fraction')
    6 ## hcao tagged and PAID on 2-20-2004
    7 
    8 ## DBsubject('Algebra')
    9 ## DBchapter('Basic Algebra')
   10 ## DBsection('Real Numbers')
   11 ## Date('6/3/2002')
   12 ## Author('')
   13 ## Institution('')
   14 ## TitleText1('College Algebra')
   15 ## EditionText1('3')
   16 ## AuthorText1('Stewart, Redlin, Watson')
   17 ## Section1('1.2')
   18 ## Problem1('12')
   19 DOCUMENT();        # This should be the first executable line in the problem.
   20 
   21 loadMacros(
   22 "PG.pl",
   23 "PGbasicmacros.pl",
   24 "PGchoicemacros.pl",
   25 "PGanswermacros.pl",
   26 "PGauxiliaryFunctions.pl"
   27 );
   28 TEXT(beginproblem());
   29 $showCorrectPartialAnswers = 1;
   30 
   31 $n1 = random(2,10,1);
   32 $n2 = random(2,10,1);
   33 $n3 = random(2,10,1);
   34 $n4 = random(2,10,1);
   35 
   36 BEGIN_TEXT
   37 Use properties of real numbers to write the expression
   38 \[($n1 a)($n2 b+ $n3 c- $n4 d)  \]
   39 in the form of
   40 \[K\cdot ab + M\cdot ac + N\cdot ad.\]
   41 The number \(K=\)\{ans_rule(5)\},$BR
   42 The number \(M=\)\{ans_rule(5)\},$BR
   43 The number \(N=\)\{ans_rule(5)\}.$BR
   44 END_TEXT
   45 
   46 $num1 = $n1*$n2;
   47 $num2 = $n1*$n3;
   48 $num3 =-$n1*$n4;
   49 
   50 ANS(strict_num_cmp($num1));
   51 ANS(strict_num_cmp($num2));
   52 ANS(strict_num_cmp($num3));
   53 
   54 ENDDOCUMENT();        # This should be the last executable line in the problem.

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9