[npl] / trunk / NationalProblemLibrary / ASU-topics / setTrigIdentities / p1.pg Repository: Repository Listing bbplugincoursesdistsnplrochestersystemwww

# Annotation of /trunk/NationalProblemLibrary/ASU-topics/setTrigIdentities/p1.pg

 1 : jjholt 109 ##DESCRIPTION 2 : jjholt 119 ## Precalculus, Trigonometric Identities 3 : jjholt 109 ##ENDDESCRIPTION 4 : jj 61 5 : jjholt 119 ## KEYWORDS('precalculus','trigonometry','identities') 6 : jjholt 109 ## Tagged by skm9b 7 : jj 61 8 : jj 297 ## DBsubject('Trigonometry') 9 : jj 305 ## DBchapter('Analytic Trigonometry') 10 : jj 114 ## DBsection('Trigonometric Identities') 11 : jjholt 109 ## 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 : "PGgraphmacros.pl", 29 : "PGasu.pl" 30 : ); 31 : 32 : gage 268 TEXT(beginproblem()); 33 : jj 61 34 : $showPartialCorrectAnswers = 1; 35 : 36 :$pi = 4*atan2(1,1); 37 : $a=random(3,9,2); 38 :$b=random($a+1,$a+2,1); 39 : 40 : $cst=-$a/$b; 41 : 42 : #evaluate answers 43 : 44 :$bb=$b**2; 45 :$d = $bb-$a**2; 46 : $e = 2*$a**2-$bb; 47 : 48 :$snt="-sqrt($d)/$b"; 49 : $sn2t="2*$a*sqrt($d)/$bb"; 50 : $cs2t="$e/$bb"; 51 :$snthalf=sqrt((1-$cst)/2); 52 :$csthalf=-sqrt((1+\$cst)/2); 53 : 54 : TEXT(EV2(<