[system] Repository:
ViewVC logotype

Revision 2593

Jump to revision: Previous Next
Author: dpvc
Date: Thu Aug 12 16:48:52 2004 UTC (15 years, 6 months ago)
Log Message:
This is a preliminary attempt at adding answer checkers that use the
parser.  If you have a parser object (like a formula or a vector), you
can use the ->cmp method to get an answer checker appropriate for the
object.  For example:

	 $v = Vector(1,2,3);
	 #  print text of problem

would produce an answer checker that matched against the vector <1,2,3>.
Most of the parameters are set in the Context, but additional ones can
be passed to the checker (this still needs work).

See the sample problems for more examples.

The checkers for Reals, Complexes, Points, Vectors, Matrices and
Intervals work pretty well.  The ones for List and Union objects need
more work, as they only do an ORDERED check at the moment (the student
answers must be in the same order).  This needs to be fixed.
The checker for Formula objects (which corresponds to fun_cmp) still
needs to be written.

Changed paths:

Path Details
Directorytrunk/pg/lib/Value/AnswerChecker.pm added

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9