|Answers checked incorrectly with Vector2D and Vector3D variables
|topic started 9/21/2006; 7:30:58 AM
last post 9/21/2006; 6:16:38 PM
|Davide P. Cervone - Re: Answers checked incorrectly with Vector2D and Vector3D variables
9/21/2006; 6:16:38 PM (reads: 224, responses: 0)
there was a bug in the formula-checking code for vector-valued
formulas. The coordinates of the vectors used for the test points were
being created as standard Perl reals rather than Parser Reals, and so
the equality checks between the vectors were using Perl's standard
exact checks rather than the Parser's fuzzy checks. This caused some
points to be marked as unequal due to small differences that should
have been ignored.
I have fixed this in pg/lib/Value/Formula.pm so if you get an updated copy of that, you should be OK. Thanks for reporting the problem.