Formula Mod C

Description

Similar to the Formula type. Answers may be any kind of formula, entered in calculator syntax, but responses are graded as correct if they differ from the given answer by a constant value. Answers may include variables and standard functions. This question type is intended for use in questions asking the student to evaluate indefinite integrals.

Notes

Examples

\begin{question}{Formula Mod C}
\qutext{Calculate $\int 6x^2\, dx$.}
% Use calculator syntax for the answer, NOT TeX:
\answer{2x^3}
% Note that the response '2x^3+1' would also be graded as correct.
\end{question}
\begin{question}{Formula Mod C}
% This question uses algorithmic variables.
\qutext{Calculate $\int \var{2*\var{a}}x+\var{b}\, dx$.}
\answer{\var{a1}x^2+\var{b}x}
\code{$a = range(2,10);
      $a1 = int(switch(rint(2),$a,-$a));
      $b = range(1,20);}
\end{question}