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

# View of /trunk/NationalProblemLibrary/ASU-topics/setTrigEquations/p7.pg

Sat Jun 3 14:35:45 2006 UTC (6 years, 11 months ago) by gage
File size: 1801 byte(s)
 Cleaned code with convert-functions.pl script


    1 ## DESCRIPTION
2 ## Geometry: Plane Geometry
3 ## ENDDESCRIPTION
4
5 ## KEYWORDS('geometry', 'plane')
6 ## Tagged by YJ
7
8 ## DBsubject('Geometry')
9 ## DBchapter('Plane Geometry')
10 ## DBsection('Trigonometric Equations')
11 ## Date('5/26/2005')
12 ## Author('Jeff Holt')
13 ## Institution('UVA')
14 ## TitleText1('Calculus')
15 ## EditionText1('5e')
16 ## AuthorText1('Stewart')
17 ## Section1('5.8.5')
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 =('\frac{3}{4}','\frac{1}{4}','\frac{1}{2}');
39 $tag1 = random(0,2,1); 40 41 42 @cos_answers1 = ("1/6", "1/3", "1/4"); 43 @cos_answers2 = ("5/6", "2/3", "3/4"); 44 @cos_answers3 = ("7/6", "4/3", "5/4"); 45 @cos_answers4 = ("11/6", "5/3", "7/4"); 46 47 48 49 TEXT(EV2(<<EOT)); 50 Solve the following equation 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 $$(\cos(t))^2=values[tag1]$$ 61$PAR
62 t = \{ans_rule(20) \}   $$\pi$$
63
64 EOT
65 $ans1 =$cos_answers1[$tag1]; 66$ans2 = $cos_answers2[$tag1];
67 $ans3 =$cos_answers3[$tag1]; 68$ans4 = $cos_answers4[$tag1];
69 ANS(no_decimal_list("$ans1,$ans2,$ans3,$ans4"));
70
71
72 ENDDOCUMENT();        # This should be the last executable line