DigitsTolType
Jump to navigation
Jump to search
Digits TolType
This describes an alternative way for determining the tolerance type based on the number of digits.
PG problem file  Explanation 

DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "PGML.pl" ); TEXT(beginproblem()); 
Initialization: This is builtin to MathObjects. 
Context("Numeric")>flags>set(tolType=>'digits',tolDigits => 3, tolerateTruncation=>0); 
Setup:

BEGIN_PGML Graph the circle given by the following equation. [`[$circle_eq_lhs] = [$r ** 2]`] [_]{$gt} END_PGML 
Main Text: This asks to graph the circle given by the equation. And the code: [_]{$gt} inserts the GraphTool. 
BEGIN_PGML_SOLUTION The equation of the circle of the form: [`[$circle_eq_lhs] = [$r ** 2]`] has a center at [`([$h],[$k])`] and radius [$r]. To enter the graph, click the circle tool, then click the center at [`([$h],[$k])`] and then click a second point that is [$r] units from the center. This is easist going left, right, up or down from the center. END_PGML_SOLUTION ENDDOCUMENT(); 
This is the solution. 
 POD documentation: [1]