[npl] / trunk / NationalProblemLibrary / UVA-Stew5e / setUVA-Stew5e-C04S01-MaxMinValues / 4-1-35.pg Repository: Repository Listing bbplugincoursesdistsnplrochestersystemwww

# View of /trunk/NationalProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C04S01-MaxMinValues/4-1-35.pg

Wed Jul 18 15:40:35 2007 UTC (5 years, 10 months ago) by jjholt
File size: 1346 byte(s)

1 ## DESCRIPTION
2 ##  Calculus: Maximum and Minimum Values
3 ## ENDDESCRIPTION
4
5 ## KEYWORDS('derivatives', 'minimum', 'maximum')
6 ## Tagged by YL
7
8 ## DBsubject('Calculus')
9 ## DBchapter('Applications of Differentiation')
10 ## DBsection('Maximum and Minimum Values')
11 ## Date('5/29/2005')
12 ## Author('Jeff Holt')
13 ## Institution('UVA')
14 ## TitleText1('Calculus: Early Transcendentals')
15 ## EditionText1('5')
16 ## AuthorText1('Stewart')
17 ## Section1('4.1')
18 ## Problem1('35')
19
20 ## TitleText2('Calculus: Early Transcendentals')
21 ## EditionText2('6')
22 ## AuthorText2('Stewart')
23 ## Section2('4.1')
24 ## Problem2('')
25
26
27 DOCUMENT();        # This should be the first executable line in the problem.
28
30 "PG.pl",
31 "PGbasicmacros.pl",
32 "PGchoicemacros.pl",
34 "PGauxiliaryFunctions.pl",
36 );
37
38 TEXT(beginproblem());
40
41 \$a1 = random(1,5,1);
42 \$b1 = random(6,10,1);
43 \$coef3 = 2;
44 \$coef2 = 3*(\$a1+\$b1);
45 \$coef1 = 6*\$a1*\$b1;
46 \$coef0 = random(1,11,1);
47
48 TEXT(EV2(<<EOT));
49 Find all critical values for the function
50 \[ f(x) = \$coef3 x^3 - \$coef2 x^2 + \$coef1 x - \$coef0 \]
51 and then list them (separated by commas) in the box below.
52 \$PAR
53 List of critical numbers: \{ans_rule(16) \}
54 EOT
55
56 \$ans = "\$a1,\$b1";
57 ANS(number_list_cmp(\$ans));
58
59 ENDDOCUMENT();        # This should be the last executable line in the problem.