Parent Directory
|
Revision Log
Results of running convert_fun_in_dir.sh to clean up problems
1 ##DESCRIPTION 2 ## Add signed numbers 3 ## 4 ##ENDDESCRIPTION 5 ## DBsubject('Intermediate Algebra') 6 ## DBchapter('Ch 01: Algebra, Mathematical Models and Problem Solving') 7 ## DBsection('Operations with Real Numbers and Simplifying Algebraic Expressions') 8 ## KEYWORDS('real numbers','operations with signed numbers') 9 ## TitleText1('Essentials of Intermediate Algebra') 10 ## EditionText1('1') 11 ## AuthorText1('Blitzer') 12 ## Section1('1.2') 13 ## Problem1('') 14 ## Author('RA Cruz') 15 ## Institution('The College of Idaho') 16 ## Date: 2007/09 17 18 19 DOCUMENT(); # This should be the first executable line in the problem. 20 21 loadMacros( 22 "PGstandard.pl", 23 "MathObjects.pl", 24 "contextLimitedNumeric.pl" 25 ); 26 27 TEXT(beginproblem()); 28 29 ###################################### 30 # Setup 31 32 $a1 = random(2,12,1); 33 $a2 = $a1 + random(2,7,1); 34 35 $b1 = random(2,12,1); 36 $b2 = random(-12,-2,1); 37 ###################################### 38 # Main text 39 40 BEGIN_TEXT 41 Subtract as indicated: 42 $PAR 43 a) \( $a1 - $a2 = \) \{ ans_rule(10) \} 44 $PAR 45 b) \( $b1 - ($b2) = \) \{ ans_rule(10) \} 46 $BR 47 48 END_TEXT 49 50 ###################################### 51 # Answers 52 53 Context("LimitedNumeric"); 54 55 $ans_a=Real($a1 - $a2)->reduce; 56 ANS($ans_a->cmp); 57 58 $ans_b=Real($b1 - $b2)->reduce; 59 ANS($ans_b->cmp); 60 61 $showPartialCorrectAnswers = 1; 62 63 ###################################### 64 65 66 COMMENT('MathObject version'); 67 ENDDOCUMENT();
| aubreyja at gmail dot com | ViewVC Help |
| Powered by ViewVC 1.0.9 |