[npl] / trunk / NationalProblemLibrary / Rochester / setAlgebra28ExpFunctions / sw6_1_5.pg Repository:
ViewVC logotype

View of /trunk/NationalProblemLibrary/Rochester/setAlgebra28ExpFunctions/sw6_1_5.pg

Parent Directory Parent Directory | Revision Log Revision Log


Revision 145 - (download) (annotate)
Sun Mar 26 22:21:31 2006 UTC (7 years, 1 month ago) by jj
File size: 948 byte(s)
Initial import

    1 #DESCRIPTION
    2 ##  Algebra problem: Exponential Functions
    3 ##ENDDESCRIPTION
    4 
    5 ##KEYWORDS('algebra', 'expeonential function')
    6 
    7 DOCUMENT();        # This should be the first executable line in the problem.
    8 
    9 loadMacros(
   10 "PG.pl",
   11 "PGbasicmacros.pl",
   12 "PGchoicemacros.pl",
   13 "PGanswermacros.pl",
   14 "PGauxiliaryFunctions.pl"
   15 );
   16 
   17 TEXT(beginproblem());
   18 $showPartialCorrectAnswers = 1;
   19 
   20 $a=random(2,10,1);
   21 
   22 BEGIN_TEXT
   23 For the function \( \displaystyle f(x)= \left(\frac{1}{$a}\right)^x, \)
   24 calculate the following function values:
   25 $BR
   26 \(f(-3)=\) \{ans_rule(25) \}
   27 $BR
   28 \(f(-1)=\) \{ans_rule(25) \}
   29 $BR
   30 \(f(0)=\) \{ans_rule(25) \}
   31 $BR
   32 \(f(1)=\) \{ans_rule(25) \}
   33 $BR
   34 \(f(3)=\) \{ans_rule(25) \}
   35 $BR
   36 END_TEXT
   37 
   38 $ans1 = $a**3;
   39 $ans2 = $a;
   40 $ans3 = 1;
   41 $ans4 = 1/$a;
   42 $ans5 = $a**(-3);
   43 
   44 ANS(num_cmp($ans1));
   45 ANS(num_cmp($ans2));
   46 ANS(num_cmp($ans3));
   47 ANS(num_cmp($ans4));
   48 ANS(num_cmp($ans5));
   49 
   50 ENDDOCUMENT();        # This should be the last executable line in the problem.

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9