Parent Directory
|
Revision Log
Updated Tags. --JJH
1 ## DESCRIPTION 2 ## Calculus 3 ## ENDDESCRIPTION 4 5 ## KEYWORDS ('complex','imaginary','conjugate') 6 ## Tagged by cmd6a 4/20/06 7 8 ## DBsubject('Calculus') 9 ## DBchapter('Complex Variables') 10 ## DBsection('Complex Numbers') 11 ## Date('') 12 ## Author('') 13 ## Institution('Rochester') 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 "PGcomplexmacros.pl" 29 ); 30 31 TEXT(beginproblem()); 32 $showPartialCorrectAnswers = 1; 33 34 @choices = ("\(\vert z_2 \vert - \vert z_1 \vert\)" , 35 "\(\bigl\vert \vert z_2 \vert - \vert z_1 \vert \bigr\vert\)" , 36 "\(\vert z_1\ + z_2 \vert \)" , 37 "\( \vert z_1 \vert + \vert z_2 \vert \)"); 38 @answers = ("a", "b", "c", "d"); 39 40 @slice = NchooseK( scalar(@choices), 4 ); 41 42 @scrambled_choices = @choices[@slice]; 43 @scrambled_answers = @answers[@slice]; 44 45 BEGIN_TEXT 46 $PAR Place the following in order: $PAR 47 (a) $scrambled_choices[0] , $PAR 48 (b) $scrambled_choices[1] , $PAR 49 (c) $scrambled_choices[2] , $PAR 50 (d) $scrambled_choices[3] . 51 $PAR 52 \{ans_rule(5)\} \(\le\) \{ans_rule(5)\} \(\le\) \{ans_rule(5)\} \(\le\) \{ans_rule(5)\}. 53 54 END_TEXT 55 56 ANS(str_cmp( $scrambled_answers[$slice[0]] ) ); 57 ANS(str_cmp( $scrambled_answers[$slice[1]] ) ); 58 ANS(str_cmp( $scrambled_answers[$slice[2]] ) ); 59 ANS(str_cmp( $scrambled_answers[$slice[3]] ) ); 60 61 ENDDOCUMENT(); # This should be the last executable line in the problem. 62
| aubreyja at gmail dot com | ViewVC Help |
| Powered by ViewVC 1.0.9 |