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

# Annotation of /trunk/NationalProblemLibrary/Rochester/setAlgebra28ExpFunctions/srw4_1_29.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('The Natural Exponential Function') 10 : jj 3115 ## Date('6/3/2002') 11 : ## TitleText1('College Algebra') 12 : ## AuthorText1('Stewart, Redlin, Watson') 13 : ## EditionText1('3') 14 : ## Section1('6.2') 15 : ## Problem1('5') 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 : 34 : BEGIN_TEXT 35 : The graph of the function 36 : $$f(x)=e^{-x}-a$$ 37 : can be obtained from the graph of 38 : $$g(x)=e^x$$ 39 : by one of the following actions: 40 : $BR 41 : (a) reflecting the graph of $$g(x)$$ in the $$x$$-axis; 42 :$BR 43 : (b) reflecting the graph of $$g(x)$$ in the $$y$$-axis; 44 : $BR 45 : your answer is (input a or b) \{ans_rule(15) \} 46 :$BR 47 : then, by one of the following actions: 48 : $BR 49 : (a) shifting the resulting graph to the right$a units; 50 : $BR 51 : (b) shifting the resulting graph to the left$a units; 52 : $BR 53 : (c) shifting the resulting graph upward$a units; 54 : $BR 55 : (d) shifting the resulting graph downward$a units; 56 : $BR 57 : Your answer is (input a, b, c, or d) \{ans_rule(15) \} 58 :$BR 59 : Is the domain of the function $$f(x)$$ still $$(-\infty,\infty)$$? 60 : $BR 61 : Your answer is (input Yes or No) \{ans_rule(15) \} 62 :$BR 63 : The range of the function $$f(x)$$ is $$(A,\infty)$$, 64 : $BR 65 : the value of $$A$$ is \{ans_rule(15) \} 66 :$BR 67 : END_TEXT 68 : 69 : $ans0 = "b"; 70 :$ans1 = "d"; 71 : $ans2 = "Yes"; 72 :$ans3 = -$a; 73 : 74 : ANS(str_cmp($ans0)); 75 : ANS(str_cmp($ans1)); 76 : ANS(str_cmp($ans2)); 77 : ANS(num_cmp(\$ans3)); 78 : 79 : ENDDOCUMENT(); # This should be the last executable line in the problem. 80 :