[npl] / trunk / NationalProblemLibrary / ma122DB / set11 / s5_3_28.pg Repository: Repository Listing bbplugincoursesdistsnplrochestersystemwww

# View of /trunk/NationalProblemLibrary/ma122DB/set11/s5_3_28.pg

Wed Jul 18 00:35:17 2007 UTC (5 years, 10 months ago) by jjholt
File size: 1261 byte(s)
Changed Stew4e to Stew 6e.


    1 ##DESCRIPTION
2 ## Evaluate a definite integral
3 ##ENDDESCRIPTION
4 ##KEYWORDS('integrals', 'theory', 'definite')
5
6 ## Shotwell cleaned
7 ## lcao , PAID on 11-24-2003
8
9 ## DBsubject('Calculus')
10 ## DBchapter('Integrals')
11 ## DBsection('The Fundamental Theorem of Calculus')
12 ## Date('6/3/2002')
13 ## Author('')
14 ## Institution('')
15 ## TitleText1('Calculus: Early Transcendentals')
16 ## EditionText1('6')
17 ## AuthorText1('Stewart')
18 ## Section1('5.3')
19 ## Problem1('28')
20
21 DOCUMENT();        # This should be the first executable line in the problem.
22
24 "PGbasicmacros.pl",
26 "PGauxiliaryFunctions.pl"
27 );
28
29 TEXT(beginproblem());
30 $showPartialCorrectAnswers = 1; 31 32$a1 = 0;
33 $b1 = random(2,10,1); 34$c1 = random(5,9,1);
35 $d1 = random(1,4,1); 36 37 BEGIN_TEXT 38 Evaluate the definite integral 39 $\int_{ d1 } ^ { c1 } \frac { b1 } { \sqrt x } dx$$BR
41
42 END_TEXT
43
44 $ans = "(2*$a1*$c1^2.5/5 + 2*$b1*$c1^.5) -(2*$a1*$d1^2.5/5 + 2*$b1*$d1^.5 )"; 45 ANS(num_cmp($ans));
46
47 ##set $PG_environment{'textbook'} in webworkCourse.ph 48 if (defined($textbook)) {
49    if (\$textbook eq "EllisGulick5") {
50 BEGIN_TEXT
51 This is similar to Problem 6 in Section 5.5 of the text.
52 END_TEXT
53 }
54 }
55
56 ENDDOCUMENT();        # This should be the last executable line in the problem.