[system] Repository:
ViewVC logotype

Revision 2622


Jump to revision: Previous Next
Author: dpvc
Date: Sun Aug 15 22:46:57 2004 UTC (15 years, 3 months ago)
Log Message:
Created the first draft of the Parser's function answer checker.  Some
work still needs to be done, in particular, type mismatches are not
being reported, and lists are being processed only as ordered lists
with no partial credit.

This doesn't implement everything from fun_cmp.  In particular, there
is no support for parameter matching at the moment.  This will have to
be added, but I'm not quite sure how to do it when the function's
return value is not a real number (e.g., an interval).

On the other hand, this checker is more forgiving about domain errors:
if tries a point where the professor's function is not defined, it
ignores that one and looks for another (until it decides it can't find
one).  Once it has these points, it tries them on the student's
answer, and if the student's function is undefined, then the student
answer is wrong (since it is not defined somewhere that the
professor's funciton is).  This avoids the "Error evaluating student
function at ..." messages, which just confused most students anyway.

Changed paths:

Path Details
Directorytrunk/pg/lib/Parser/Context/Default.pm modified , text changed
Directorytrunk/pg/lib/Parser/Context/Variables.pm modified , text changed
Directorytrunk/pg/lib/Value/AnswerChecker.pm modified , text changed
Directorytrunk/pg/lib/Value/Formula.pm modified , text changed
Directorytrunk/pg/lib/Value.pm modified , text changed

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9