WeBWorK Problems

Checking against multiple correct answers

Re: Checking against multiple correct answers

by Davide Cervone -
Number of replies: 0
Well, if you are using MathObjects, then providing a custom answer checker might be the way to go. Something like
    $p = Formula("your formula here");
    ...
    ANS($p->cmp(checker => sub {
      my ($correct,$student) = @_;
      return $correct == $student || $correct == -$student;
    });
should do the trick.

Davide