[npl] / trunk / NationalProblemLibrary / Union / setDervChainRule / an3_5_11.pg Repository: Repository Listing bbplugincoursesdistsnplrochestersystemwww

View of /trunk/NationalProblemLibrary/Union/setDervChainRule/an3_5_11.pg

Revision 329 - (download) (annotate)
Thu Aug 17 17:23:36 2006 UTC (6 years, 9 months ago) by jjholt
File size: 1276 byte(s)
```Added tags.
```

```    1 ## DESCRIPTION
2 ## Calculus
3 ## ENDDESCRIPTION
4
5 ## KEYWORDS('derivative' 'chain rule')
6 ## Tagged by tda2d
7
8 ## DBsubject('Calculus')
9 ## DBchapter('Differentiation')
10 ## DBsection('The Chain Rule')
11 ## Date('')
12 ## Author('')
13 ## Institution('Union College')
14 ## TitleText1('')
15 ## EditionText1('')
16 ## AuthorText1('')
17 ## Section1('')
18 ## Problem1('')
19
20 DOCUMENT();        # This should be the first executable line in the problem.
21
22 loadMacros(
23   "PG.pl",
24   "PGbasicmacros.pl",
25   "PGchoicemacros.pl",
26   "PGanswermacros.pl",
27   "PGauxiliaryFunctions.pl",
28   "PGunion.pl",        # Union College utilities
29   "PGcourse.pl",       # Customization file for the course
30 );
31
32 TEXT(beginproblem());
33 BEGIN_PROBLEM();
34
35 \$a = non_zero_random(-8,8,2);
36 \$b = random(2,5,1);
37 \$coeff = \$b*\$a;
38 \$expb = \$b - 1;
39
40 \$df = "[sec(\${a}x^\$b)]^(2)*\${coeff}x^\$expb";
41
42 BEGIN_TEXT
43 Suppose that \( f(x) = \tan(\$a x^\$b)\).
44 Find \(f'(x)\).
45 \$PAR
46 \(f'(x)\) = \{ans_rule(60)\}.
47 END_TEXT
48
49 \$showPartialCorrectAnswers=1;
50
51 ANS(fun_cmp(
52   \$df,                   #  the correct answer
53   limits => [0,2],       #  range of x's to use
54   relTol => .1,          # .1 percent, (i.e., .001)
55 ));
56
57 ##################################################
58
59 END_PROBLEM();
60 ENDDOCUMENT();        # This should be the last executable line in the problem.
```

 aubreyja at gmail dot com ViewVC Help Powered by ViewVC 1.0.9