[rochester] / trunk / rochester_problib / instructiveProblems / OldProblems / ur_dr_10_2.pg Repository:
ViewVC logotype

Annotation of /trunk/rochester_problib/instructiveProblems/OldProblems/ur_dr_10_2.pg

Parent Directory Parent Directory | Revision Log Revision Log


Revision 899 - (view) (download)

1 : gage 899 #DESCRIPTION
2 :     #KEYWORDS('derivatives', 'critical points')
3 :     #ENDDESCRIPTION
4 :    
5 :     DOCUMENT(); # This should be the first executable line in the problem.
6 :    
7 :     loadMacros(
8 :     "PGcourse.pl",
9 :     "PG.pl",
10 :     "PGbasicmacros.pl",
11 :     "PGchoicemacros.pl",
12 :     "PGanswermacros.pl",
13 :     "PGauxiliaryFunctions.pl"
14 :     );
15 :    
16 :     TEXT(beginproblem());
17 :     $showPartialCorrectAnswers = 1;
18 :    
19 :     ###################
20 :     #
21 :     # Setup
22 :    
23 :     $a = non_zero_random(-9,9,1);
24 :     $b = non_zero_random(-5,5,1);
25 :     if (($a == $b) or (abs($b)==1)) { $b=-6; }
26 :     $c = random(2,8,1);
27 :     if ($a == $c) { $c=9; }
28 :    
29 :     $ans = (- $a * $b - $c)/($b*$c);
30 :    
31 :     ###################
32 :     #
33 :     # Text
34 :    
35 :     BEGIN_TEXT
36 :    
37 :     The function \( f(x) = ($c x+$a)e^{$b x} \)
38 :     has one critical number. Find it. $BR
39 :     \{ans_rule(10) \}
40 :    
41 :     END_TEXT
42 :    
43 :     ###################
44 :     #
45 :     # Answer
46 :    
47 :     ANS(num_cmp($ans));
48 :    
49 :     ENDDOCUMENT(); # This should be the last executable line in the problem.

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9