From: Mike G. v. a. <we...@ma...> - 2007-10-28 16:59:00
|
Log Message: ----------- Modified this blankProblem2.pg to use more MathObject techniques. You can make this the default problem template by adjusting the reference to blankProblem in global.conf Modified Files: -------------- webwork2/conf/snippets: blankProblem2.pg Revision Data ------------- Index: blankProblem2.pg =================================================================== RCS file: /webwork/cvs/system/webwork2/conf/snippets/blankProblem2.pg,v retrieving revision 1.1 retrieving revision 1.2 diff -Lconf/snippets/blankProblem2.pg -Lconf/snippets/blankProblem2.pg -u -r1.1 -r1.2 --- conf/snippets/blankProblem2.pg +++ conf/snippets/blankProblem2.pg @@ -27,7 +27,10 @@ #"PGcourse.pl", # Customization file for the course ); +# Print problem number and point value (weight) for the problem TEXT(beginproblem()); + +# Show which answers are correct and which ones are incorrect $showPartialCorrectAnswers = 1; ############################################################## @@ -35,6 +38,9 @@ # Setup # # +Context("Numeric"); + +$pi = Real("pi"); ############################################################## # @@ -42,17 +48,26 @@ # # +Context()->texStrings; BEGIN_TEXT +Enter a value for \(\pi\) + +\{$pi->ans_rule\} END_TEXT + + ############################################################## # # Answers # # +ANS($pi->with(tolerance=>.0001)->cmp); +# relative tolerance --3.1412 is incorrect but 3.1413 is correct +# default tolerance is .01 or one percent. ENDDOCUMENT(); |