PREP 2014 Question Authoring - Archived

Answer checkers with Context("LimitedComplex")

Re: Answer checkers with Context("LimitedComplex")

by Davide Cervone -
Number of replies: 0
I don't see anything in the LimitedComplex code that would prevent i+2 from working. Can you post a minimal example that shows the problem?

The following example seems to accept both:

DOCUMENT();

loadMacros(
  "PGstandard.pl",
  "contextLimitedComplex.pl"
);

Context("LimitedComplex");

$z = 2+i;

Context()->texStrings;
BEGIN_TEXT
\($z\) = \{$z->ans_rule\}
END_TEXT
Context()->normalStrings();

ANS($z->cmp);

ENDDOCUMENT();