$answer_point = Compute("($x0, $y0)");
my ($correct,$student,$ans) = @_;
return Vector($correct-$student)->norm<.2 ;
} => ["You're close. You need to position the dot more precisely.", replaceMessage=>1]
So that if the student's answer is somewhat close they get an encouraging
message to reposition the point to make the answer correct.
Is there a simple way to check a list of 3 points entered in any order?
My first experiments seem to indicate that the AnswerHints subroutine above
won't work as is because it is handed the entire list, not a single point at a time.
Any hints on another way to approach this are appreciated.
The problem arises in checking points positioned by students on a graph. The single point version is at
and the multipoint version (without any helpful hints) is at