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

# View of /trunk/NationalProblemLibrary/ASU-topics/setTrigIdentities/p4.pg

Thu Jun 29 18:44:08 2006 UTC (6 years, 11 months ago) by jj
File size: 1674 byte(s)
Fixed tags.


    1 ##DESCRIPTION
2 ## Precalculus, Trigonometric Identities
3 ##ENDDESCRIPTION
4
5 ## KEYWORDS('precalculus','trigonometry','identities')
6 ## Tagged by skm9b
7
8 ## DBsubject('Trigonometry')
9 ## DBchapter('Analytic Trigonometry')
10 ## DBsection('Trigonometric Identities')
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 );
29
30 # No partial credit on this problem, so we say:
32
33 TEXT(beginproblem());
34 # no partial credit on this problem:
35
36 $showPartialCorrectAnswers = 0; 37 38 #Make a new select list 39 40$tf=new_select_list();
41 # $tf now "contains" the select list object. 42 43 #Insert some question and whether or not they are true. 44$tf->qa(
45 "$$\tan(x)+\frac{\cos(x)}{1+\sin(x)}=\csc(x)$$",
46 "F",
47 "$$(\sin(x)-\cos(x))^2 =1$$",
48 "F",
49 " $$\frac{\sin(x)}{\csc(x)}+\frac{\cos(x)}{\sec(x)} =1$$",
50 "T",
51 "  $$\cos(x)(\cot(x)+\tan(x))=\csc(x)$$",
52 "T"
53 );
54
55 #Choose two of the questions and answer pairs at random
56 $tf->choose(2); 57 58 # Now print the text using$ml->print_q
59
60 BEGIN_TEXT
61 $PAR 62 63 Enter T or F depending on whether the identity is true or false 64 (You must enter T or F -- True and False will not work.)$BR
65 \{ $tf->print_q \} 66$PAR
67 END_TEXT
68