[npl] / trunk / NationalProblemLibrary / Rochester / setAlgebra28ExpFunctions / srw4_1_5.pg Repository: Repository Listing bbplugincoursesdistsnplrochestersystemwww

# View of /trunk/NationalProblemLibrary/Rochester/setAlgebra28ExpFunctions/srw4_1_5.pg

Tue Apr 11 16:55:13 2006 UTC (7 years, 1 month ago) by jjholt
File size: 1220 byte(s)
```Added tags.  --JH
```

```    1 ## DESCRIPTION
2 ## Algebra: Exponential and Logarithmic Functions
3 ## ENDDESCRIPTION
4
5 ## KEYWORDS ('exponential')
6 ## Tagged by cmd6a 4/4/06
7
8 ## DBsubject('Algebra')
9 ## DBchapter('Exponential and Logarithmic Functions')
10 ## DBsection('The Natural Exponential Function')
11 ## Date('')
12 ## Author('')
13 ## Institution('Rochester')
14 ## TitleText1('')
15 ## EditionText1('')
16 ## AuthorText1('')
17 ## Section1('')
18 ## Problem1('')
19
20 DOCUMENT();        # This should be the first executable line in the problem.
21
23 "PG.pl",
24 "PGbasicmacros.pl",
25 "PGchoicemacros.pl",
27 "PGauxiliaryFunctions.pl"
28 );
29
30 TEXT(beginproblem());
32
33 \$a=random(2,10,1);
34
35 BEGIN_TEXT
36 For the function \( f(x)= \$a e^x, \) calculate the following function values:
37 \$BR
38 \(f(-3)=\) \{ans_rule(25) \}
39 \$BR
40 \(f(-1)=\) \{ans_rule(25) \}
41 \$BR
42 \(f(0)=\) \{ans_rule(25) \}
43 \$BR
44 \(f(1)=\) \{ans_rule(25) \}
45 \$BR
46 \(f(3)=\) \{ans_rule(25) \}
47 \$BR
48 END_TEXT
49
50 \$ans1 = \$a*exp(-3);
51 \$ans2 = \$a*exp(-1);
52 \$ans3 = \$a;
53 \$ans4 = \$a*exp(1);
54 \$ans5 = \$a*exp(3);
55
56 ANS(num_cmp(\$ans1));
57 ANS(num_cmp(\$ans2));
58 ANS(num_cmp(\$ans3));
59 ANS(num_cmp(\$ans4));
60 ANS(num_cmp(\$ans5));
61
62 ENDDOCUMENT();        # This should be the last executable line in the problem.
63
```