[npl] / trunk / NationalProblemLibrary / UCSB / Stewart5_4_7 / Stewart5_4_7_10.pg Repository:
ViewVC logotype

View of /trunk/NationalProblemLibrary/UCSB/Stewart5_4_7/Stewart5_4_7_10.pg

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1674 - (download) (annotate)
Sun Feb 6 02:23:13 2011 UTC (2 years, 3 months ago) by apizer
File size: 1055 byte(s)
correct Stewart tags

    1 ## DBsubject('Calculus')
    2 ## DBchapter('Applications of Differentiation')
    3 ## DBsection('Optimization Problems')
    4 ## KEYWORDS('Optimization','Differentiation')
    5 ## TitleText1('Calculus: Early Transcendentals')
    6 ## EditionText1('5')
    7 ## AuthorText1('Stewart')
    8 ## Section1('4.7')
    9 ## Problem1('10')
   10 ## Author('')
   11 ## Institution('UCSB')
   12 
   13 
   14 DOCUMENT();
   15 
   16 loadMacros(
   17 "PG.pl",
   18 "PGbasicmacros.pl",
   19 "PGchoicemacros.pl",
   20 "PGanswermacros.pl",
   21 "PGauxiliaryFunctions.pl"
   22 );
   23 
   24 TEXT(&beginproblem);
   25 $showPartialCorrectAnswers = 1;
   26 $a=random(10,50,5);
   27 #$b=random(1,10,1)*random(-1,1,2);
   28 #$c=random(1,10,1)*random(-1,1,2);
   29 $b=4*$a*$a*$a;
   30 
   31 # Insert problem text between the $PAR, and space for the
   32 # answer, like this   \(y =\) \{ans_rule(50)\}
   33 # just before the END_TEXT.
   34 
   35 BEGIN_TEXT
   36 
   37 $PAR
   38 
   39 A box with a square base and open top must have a volume of $b
   40 \(cm^3\). Find the dimensions of the box that minimize the amount
   41 of material used.
   42 
   43 $PAR
   44 
   45 base length = \{ans_rule(20)\} cm
   46 
   47 $PAR
   48 
   49 height = \{ans_rule(20)\} cm
   50 
   51 END_TEXT
   52 
   53 ANS(num_cmp(2*$a));
   54 ANS(num_cmp($a));
   55 
   56 ENDDOCUMENT();

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9