Parent Directory
|
Revision Log
Log message
1 ## DESCRIPTION 2 ## Linear Algebra 3 ## ENDDESCRIPTION 4 5 ## KEYWORDS('bases' 'basis' 'matrix' 'linearly independent') 6 ## Tagged by tda2d 7 8 ## DBsubject('Linear Algebra') 9 ## DBchapter('Vector Spaces') 10 ## DBsection('Bases') 11 ## Date('') 12 ## Author('modified by Shifrin') 13 ## Institution('TCNJ') 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 "PGgraphmacros.pl", 28 "PGmatrixmacros.pl", 29 "PGnumericalmacros.pl", 30 "PGauxiliaryFunctions.pl", 31 "PGmorematrixmacros.pl", 32 "MathObjects.pl" 33 ); 34 35 TEXT(beginproblem()); 36 $showPartialCorrectAnswers = 1; 37 38 Context("Vector"); 39 40 $x = ColumnVector(-2,3,0); 41 $y = ColumnVector(6,-1,5); 42 43 # Make a new checkbox multiple choice 44 $cmc1 = new_checkbox_multiple_choice(); 45 # $cmc now "contains" the checkbox multiple choice object. 46 47 # Insert some questions and matching answers in the q/a list 48 $cmc1 -> qa ( 49 "Determine if \(W\) is a basis for \( {\mathbb R}^3\) and check the correct answer(s) below.", 50 " \(W\) is not a basis because it does not span \( {\mathbb R}^3\).", 51 ); 52 53 # Insert some incorrect answers 54 $cmc1 -> extra( 55 " \(W\) is a basis.", 56 " \(W\) is not a basis because it is linearly dependent.", 57 ); 58 59 Context()->texStrings; 60 BEGIN_TEXT 61 62 Let \(W\) be the set \(\left\{"\{"\} $x, $y \right\} \). 63 $PAR 64 \{$cmc1 -> print_q \} 65 $BR 66 \{$cmc1 -> print_a \} 67 68 END_TEXT 69 70 ANS(checkbox_cmp( $cmc1->correct_ans ) ) ; 71 72 ENDDOCUMENT(); # This should be the last executable line in the problem.
| aubreyja at gmail dot com | ViewVC Help |
| Powered by ViewVC 1.0.9 |