[npl] / trunk / NationalProblemLibrary / ASU-topics / setTrigEquations / p8.pg Repository: Repository Listing bbplugincoursesdistsnplrochestersystemwww

View of /trunk/NationalProblemLibrary/ASU-topics/setTrigEquations/p8.pg

Tue Aug 8 13:51:04 2006 UTC (6 years, 9 months ago) by jj
File size: 2076 byte(s)
Tag fixing; precalculus --> trigonometry


    1 ## DESCRIPTION
2 ## Precalculus: Trigonometry
3 ## ENDDESCRIPTION
4
5 ## KEYWORDS('precalculus','trigonometric equation')
6 ## Tagged by cmd6a 6/21/06
7
8 ## DBsubject('Trigonometry')
9 ## DBchapter('Analytic Trigonometry')
10 ## DBsection('Trigonometric Equations')
11 ## Date('')
12 ## Author('')
13 ## Institution('ASU')
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 "PGasu.pl",
30 );
31
32 # No partial credit on this problem, so we say:
34
35 TEXT(beginproblem());
36 $showPartialCorrectAnswers = 0; 37$pi = 4*atan2(1,1);
38 @values =('{\sqrt(3)}','-{\sqrt(3)}','\frac{1}{\sqrt(3)}','-\frac{1}{\sqrt(3)}','1','-1');
39 $tag1 = random(0,5,1); 40$tag2 = random(0,5,1);
41 while ($tag2 ==$tag1) {$tag2 = random(0,5,1);} 42$tag3 = random(0,5,1);
43 $tag4 = random(0,5,1); 44 while ($tag4 == $tag3) {$tag4 = random(0,5,1);}
45
46 @tan_answers1 = ("1/3",  "2/3", "1/6", "5/6","1/4", "3/4");
47 @tan_answers2 = ("4/3", "5/3", "7/6","11/6","5/4","7/4");
48
49 TEXT(EV2(<<EOT));
50 Solve the following equations in the interval [0, 2  $$\pi$$].
51 $BR 52$BBOLD Note: $EBOLD 53 Give the answer as a multiple of $$\pi$$. 54 Do not use decimal numbers. The answer should be a fraction or an integer. 55 Note that $$\pi$$ is already included in the answer so you just have to 56 enter the appropriate multiple. E.g. if the answer is $$\pi/2$$ you should 57 enter 1/2. If there is more than one answer enter them separated by commas. 58$PAR
59
60 $$\tan(t)=values[tag3]$$
61 $PAR 62 t = \{ans_rule(15) \} $$\pi$$ 63 64 EOT 65$ans1 = $tan_answers1[$tag3];
66 $ans2 =$tan_answers2[$tag3]; 67 ANS(number_list_cmp("$ans1,$ans2")); 68 69 TEXT(EV2(<<EOT)); 70$PAR
71 $$\tan(t)=values[tag4]$$
72 $PAR 73 t = \{ans_rule(15) \} $$\pi$$ 74 75 EOT 76$ans1 = $tan_answers1[$tag4];
77 $ans2=$tan_answers2[$tag4]; 78 ANS(no_decimal_list("$ans1,\$ans2"));
79
80
81 ENDDOCUMENT();        # This should be the last executable line