[npl] / trunk / NationalProblemLibrary / ASU-topics / setTrigGraphs / p6.pg Repository:
ViewVC logotype

View of /trunk/NationalProblemLibrary/ASU-topics/setTrigGraphs/p6.pg

Parent Directory Parent Directory | Revision Log Revision Log


Revision 483 - (download) (annotate)
Thu Jul 19 21:11:19 2007 UTC (5 years, 10 months ago) by jjholt
File size: 1902 byte(s)
Updated/Consolidated tags.

    1 ## DESCRIPTION
    2 ## Precalculus: Trigonometry
    3 ## ENDDESCRIPTION
    4 
    5 ## KEYWORDS('precalculus','trigonometric graphs')
    6 ## Tagged by cmd6a 6/21/06
    7 
    8 ## DBsubject('Trigonometry')
    9 ## DBchapter('Trigonometric Functions of Real Numbers')
   10 ## DBsection('Trigonometric Graphs')
   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 "PGgraphmacros.pl",
   29 "PGasu.pl"
   30 );
   31 
   32 TEXT(beginproblem());
   33 
   34 # no partial credit on this problem:
   35 
   36 $showPartialCorrectAnswers = 0;
   37 install_problem_grader(~~&std_problem_grader);
   38 
   39 #Make a new select list
   40 
   41 $tf=new_select_list();
   42 # $tf now "contains" the select list object.
   43 
   44 #Insert some question and whether or not they are true.
   45 $tf->qa(
   46 "\( \sin (x) \) is odd and \( \cos (x) \) is even ",
   47 "T",
   48 "\( \tan (x) = \tan (-x)\)  for all \( x \) in the domain of \( \tan (x)\)",
   49 "F",
   50 " \( \sec (x) \) and \(\tan (x)\) are undefined for the same values of \( x \)",
   51 "T",
   52 "  \( y = \tan (2x) \) has period \( \pi \)",
   53 "F",
   54 "The domain of \( \tan (x) \) is all real numbers",
   55 "F",
   56 " The range of \( \tan (x) \) is all real numbers",
   57 "T",
   58 "\( \tan (x)\) and \(\cot x \) are odd functions",
   59 "T"
   60 );
   61 
   62 #Choose 4 of the questions and answer pairs at random
   63 $tf->choose(4);
   64 
   65 # Now print the text using $ml->print_q
   66 
   67 BEGIN_TEXT
   68 $PAR
   69 
   70 Enter T or F depending on whether the statement is true or false
   71 (You must enter T or F -- True and False will not work.)$BR
   72 \{ $tf->print_q \}
   73 $PAR
   74 END_TEXT
   75 
   76 #Enter the correct answers to be checked against the answers
   77 ANS(str_cmp($tf->ra_correct_ans));
   78 
   79 #The ra_.. means that the output of this function is an array
   80 ENDDOCUMENT();        # This should be the last executable line in the problem.

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9