Parent Directory
|
Revision Log
Revision 318 - (view) (download)
| 1 : | jj | 61 | ## DESCRIPTION |
| 2 : | jjholt | 316 | ## Precalculus: Trigonometry |
| 3 : | jj | 61 | ## ENDDESCRIPTION |
| 4 : | |||
| 5 : | jjholt | 316 | ## KEYWORDS('trigonometry') |
| 6 : | ## Tagged by cmd6a 6/22/06 | ||
| 7 : | jj | 61 | |
| 8 : | jj | 318 | ## DBsubject('Trigonometry') |
| 9 : | jjholt | 316 | ## DBchapter('Trigonometric Functions Of Angles') |
| 10 : | ## DBsection('The Law of Cosines') | ||
| 11 : | ## Date('') | ||
| 12 : | ## Author('') | ||
| 13 : | ## Institution('ASU') | ||
| 14 : | ## TitleText1('') | ||
| 15 : | ## EditionText1('') | ||
| 16 : | ## AuthorText1('') | ||
| 17 : | ## Section1('') | ||
| 18 : | ## Problem1('') | ||
| 19 : | jj | 61 | |
| 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 : | "PGasu.pl" | ||
| 29 : | ); | ||
| 30 : | |||
| 31 : | gage | 268 | TEXT(beginproblem()); |
| 32 : | jj | 61 | |
| 33 : | # | ||
| 34 : | # Now we do the randomization of variables, and other computations | ||
| 35 : | # as needed for this problem. Sometimes we compute the answers here. | ||
| 36 : | # | ||
| 37 : | |||
| 38 : | $a = random(4,9); | ||
| 39 : | $pi=4*atan(1); | ||
| 40 : | $angC=random(40,120,10); #angle C in degrees | ||
| 41 : | $dC=$angC*$pi/180; #angle C in radians | ||
| 42 : | $angA=random(25,55,5); #angle A in degrees | ||
| 43 : | $dA=$angA*$pi/180; #angle A in radians | ||
| 44 : | |||
| 45 : | #ANSWERS | ||
| 46 : | $angB = 180-$angA-$angC; | ||
| 47 : | $dB=$angB*$pi/180; | ||
| 48 : | $ans1=$angB; | ||
| 49 : | $b=$a*sin($dB)/sin($dA); | ||
| 50 : | $ans2 = $b; | ||
| 51 : | $c=$a*sin($dC)/sin($dA); | ||
| 52 : | $ans3 = $c; | ||
| 53 : | |||
| 54 : | |||
| 55 : | BEGIN_TEXT | ||
| 56 : | Consider the triangle below. Click on the picture to see it more clearly. | ||
| 57 : | $BR | ||
| 58 : | \{ image("triangle.gif") \} | ||
| 59 : | $BR | ||
| 60 : | If \( a=$a \), the angle \( C=$angC ^\circ \) and the angle | ||
| 61 : | \( A=$angA ^\circ \) find the other angle \(B\) and the remaining sides \(b\) and | ||
| 62 : | \(c\). Give your answer to at least 3 decimal places. | ||
| 63 : | |||
| 64 : | jjholt | 316 | $PAR |
| 65 : | $BR \(B =\) \{ans_rule(20)\} degrees | ||
| 66 : | jj | 61 | $BR \(b =\) \{ans_rule(20)\} |
| 67 : | $BR \(c =\) \{ans_rule(20)\} | ||
| 68 : | |||
| 69 : | END_TEXT | ||
| 70 : | |||
| 71 : | # | ||
| 72 : | # Tell WeBWork how to test if answers are right. These should come in the | ||
| 73 : | # same order as the answer blanks above. You tell WeBWork both the type of | ||
| 74 : | # "answer evaluator" to use, and the correct answer. | ||
| 75 : | # | ||
| 76 : | |||
| 77 : | gage | 268 | ANS(num_cmp($ans1)); |
| 78 : | ANS(num_cmp($ans2)); | ||
| 79 : | ANS(num_cmp($ans3)); | ||
| 80 : | jj | 61 | |
| 81 : | ENDDOCUMENT(); # This should be the last executable line in the problem. |
| aubreyja at gmail dot com | ViewVC Help |
| Powered by ViewVC 1.0.9 |