[npl] / trunk / NationalProblemLibrary / ma117DB / set10 / srw6_5_31.pg Repository:
ViewVC logotype

Diff of /trunk/NationalProblemLibrary/ma117DB/set10/srw6_5_31.pg

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 177 Revision 178
15## TitleText1('Precalculus') 15## TitleText1('Precalculus')
16## EditionText1('3') 16## EditionText1('3')
17## AuthorText1('Stewart, Redlin, Watson') 17## AuthorText1('Stewart, Redlin, Watson')
18## Section1('6.5') 18## Section1('6.5')
19## Problem1('29') 19## Problem1('29')
20
20DOCUMENT(); # This should be the first executable line in the problem. 21DOCUMENT(); # This should be the first executable line in the problem.
21 22
22loadMacros( 23loadMacros(
23"PG.pl", 24"PG.pl",
24"PGbasicmacros.pl", 25"PGbasicmacros.pl",
25"PGchoicemacros.pl",
26"PGanswermacros.pl", 26"PGanswermacros.pl",
27"PGauxiliaryFunctions.pl" 27"PGauxiliaryFunctions.pl"
28); 28);
29 29
30TEXT(beginproblem()); 30TEXT(&beginproblem);
31$showPartialCorrectAnswers = 0; 31$showPartialCorrectAnswers = 0;
32 32
33$s=random(600,700,5); 33$s=random(600,700,5);
34 34
35TEXT(EV2(<<EOT)); 35BEGIN_TEXT
36A pilot flies in a straight path for 1 h 30 min. She then makes a course 36A pilot flies in a straight path for 1 hour and 30 min. She then makes a course
37correction, heading 10 degrees to the right of her original course, 37correction, heading 10 degrees to the right of her original course,
38and flies 2 h in the new direction. If she maintains a constant speed of 38and flies 2 hours in the new direction.
39If she maintains a constant speed of
39$s mi/h, how far is she from her starting position? 40$s miles per hour, how far is she from her starting position?
40$BR 41$BR
41Your answer is \{ans_rule(15)\} mi;
42$BR 42$BR
43EOT 43Answer: \{ans_rule(55)\} miles
44END_TEXT
44 45
45$ans1=sqrt((1.5*$s)**2+(2*$s)**2-2*(1.5*$s)*(2*$s)*cos($PI*170/180)); 46$s15 = 1.5*$s;
46 47
47ANS(num_cmp($ans1)); 48ANS(num_cmp("sqrt($s15^2+(2*$s)^2-2*$s15*2*$s*cos(pi*170/180))"));
48 49
49ENDDOCUMENT(); # This should be the last executable line in the problem. 50ENDDOCUMENT(); # This should be the last executable line in the problem.

Legend:
Removed from v.177  
changed lines
  Added in v.178

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9