Parent Directory
|
Revision Log
fixing a problem in which TEXT(beginproblem) appears in many files -- it should be TEXT(beginproblem())
1 ##DESCRIPTION 2 ## Evaluation of a simple algebraic expression 3 ##ENDDESCRIPTION 4 5 ##KEYWORDS('algebra') 6 ## hcao tagged and PAID on 12-12-2003 7 8 ## DBsubject('Algebra') 9 ## DBchapter('Basic Algebra') 10 ## DBsection('Real Numbers') 11 ## Date('6/3/2002') 12 ## Author('') 13 ## Institution('') 14 ## TitleText1('College Algebra') 15 ## EditionText1('3') 16 ## AuthorText1('Stewart, Redlin, Watson') 17 ## Section1('1.2') 18 ## Problem1('49a') 19 DOCUMENT(); # This should be the first executable line in the problem. 20 21 loadMacros( 22 "PG.pl", 23 "PGbasicmacros.pl", 24 "PGchoicemacros.pl", 25 "PGanswermacros.pl", 26 "PGauxiliaryFunctions.pl", 27 "PGcourse.pl" 28 ); 29 30 TEXT(beginproblem()); 31 32 $a = random(25,49,1); 33 $b = random(2,24,1); 34 35 TEXT(EV2(<<EOT)); 36 Evaluate the expression 37 \[\left| |-$a|-|-$b| \right|. \] 38 $BR $BR \{ ans_rule(5) \} 39 $BR 40 EOT 41 42 $answer = $a-$b; 43 44 ANS(num_cmp($answer, mode=>"strict")); 45 46 ENDDOCUMENT(); # This should be the last executable line in the problem.
| aubreyja at gmail dot com | ViewVC Help |
| Powered by ViewVC 1.0.9 |