WeBWorK Main Forum

found bug in ImplicitEquation context?

found bug in ImplicitEquation context?

by Christian Seberino -
Number of replies: 1
I'm starting to think this is a bug in ImplicitEquation context instead of due to another reason...

I've noticed strange errors when the ranges of x and y below are changed to 
[-1,1].  In that case I get this error...

Error parsing answer: 'plicitEquation' is not defined in this context; see position 3 of formula

Is this a bug in ImplicitEquation context usage after all?

cs



DOCUMENT(); 
loadMacros( 
  "MathObjects.pl", 
  "PGstandard.pl", 
  "PGML.pl", 
  "PGcourse.pl", 
  "parserNumberWithUnits.pl", 
  "contextArbitraryString.pl", 
  "parserMultiAnswer.pl", 
  "parserPopUp.pl", 
  "contextInequalities.pl", 
  "parserImplicitEquation.pl", 
  "PGgraphmacros.pl", 
); 
TEXT(beginproblem()); 
$showPartialCorrectAnswers = 1; 
###################################################################### 
 
Context("ImplicitEquation"); 
Context()->variables->set( 
x=>{limits=>[-8,8]}, 
y=>{limits=>[-8,8]} 
); 
 
BEGIN_PGML 
What is the equation for a circle with its center at (4, 2) 
throught the point (3, 2)? 
 
[________________________]{ImplicitEquation("(x-4)^2 + (y-2)^2=1", 
                                   tolerance=>0.0001)} 
END_PGML 
 
###################################################################### 
ENDDOCUMENT();