[npl] / trunk / NationalProblemLibrary / ASU-topics / setTrigIdentities / p4.pg Repository:
ViewVC logotype

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 305 - (download) (annotate)
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 
   22 loadMacros(
   23 "PG.pl",
   24 "PGbasicmacros.pl",
   25 "PGchoicemacros.pl",
   26 "PGanswermacros.pl",
   27 "PGauxiliaryFunctions.pl"
   28 );
   29 
   30 # No partial credit on this problem, so we say:
   31 install_problem_grader(~~&std_problem_grader);
   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 
   69 #Enter the correct answers to be checked against the answers
   70 ANS(str_cmp($tf->ra_correct_ans));
   71 
   72 #The ra_.. means that the output of this function is an array
   73 ENDDOCUMENT();        # This should be the last executable line in the problem.

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9