[npl] / trunk / NationalProblemLibrary / Rochester / setAlgebra28ExpFunctions / srw4_1_31.pg Repository: Repository Listing bbplugincoursesdistsnplrochestersystemwww

# Annotation of /trunk/NationalProblemLibrary/Rochester/setAlgebra28ExpFunctions/srw4_1_31.pg

 1 : jjholt 156 ## DESCRIPTION 2 : ## Algebra: Exponential and Logarithmic Functions 3 : ## ENDDESCRIPTION 4 : jj 145 5 : jjholt 156 ## Tagged by cmd6a 4/4/06 6 : jj 145 7 : jjholt 156 ## DBsubject('Algebra') 8 : ## DBchapter('Exponential and Logarithmic Functions') 9 : ## DBsection('Exponential Functions') 10 : jj 3115 ## Date('6/3/2002') 11 : ## TitleText1('College Algebra') 12 : ## AuthorText1('Stewart, Redlin, Watson') 13 : ## EditionText1('3') 14 : ## Section1('6.1') 15 : ## Problem1('24') 16 : ## KEYWORDS('algebra', 'expeonential function') 17 : jjholt 156 18 : jj 145 DOCUMENT(); # This should be the first executable line in the problem. 19 : 20 : loadMacros( 21 : "PG.pl", 22 : "PGbasicmacros.pl", 23 : "PGchoicemacros.pl", 24 : "PGanswermacros.pl", 25 : "PGauxiliaryFunctions.pl" 26 : ); 27 : 28 : TEXT(beginproblem()); 29 : $showPartialCorrectAnswers = 0; 30 : install_problem_grader(~~&std_problem_grader); 31 : 32 :$a=random(3,9,1); 33 : $b=random(3,9,1); 34 : 35 : BEGIN_TEXT 36 : The graph of the function 37 : $$f(x)=b^{x-a}$$ 38 : can be obtained from the graph of 39 : $$g(x)=b^x$$ 40 : by one of the following actions: 41 :$BR 42 : (a) shifting the graph of $$g(x)$$ to the right $a units; 43 :$BR 44 : (b) shifting the graph of $$g(x)$$ to the left $a units; 45 :$BR 46 : (c) shifting the graph of $$g(x)$$ upward $a units; 47 :$BR 48 : (d) shifting the graph of $$g(x)$$ downward $a units; 49 :$BR 50 : (e) reflecting the graph of $$g(x)$$ in the $$x$$-axis; 51 : $BR 52 : (f) reflecting the graph of $$g(x)$$ in the $$y$$-axis; 53 :$BR 54 : Your answer is (input a, b, c, d, e, or f) \{ans_rule(15) \} 55 : $BR 56 : Is the domain of the function $$f(x)$$ still $$(-\infty,\infty)$$? 57 :$BR 58 : Your answer is (input Yes or No) \{ans_rule(15) \} 59 : $BR 60 : The range of the function $$f(x)$$ is $$(A, \infty)$$, 61 :$BR 62 : the value of $$A$$ is \{ans_rule(15) \} 63 : $BR 64 : END_TEXT 65 : 66 :$ans1 = "a"; 67 : $ans2 = "Yes"; 68 :$ans3 = 0; 69 : 70 : ANS(str_cmp($ans1)); 71 : ANS(str_cmp($ans2)); 72 : ANS(num_cmp(\$ans3)); 73 : 74 : ENDDOCUMENT(); # This should be the last executable line in the problem.