Multi Formula

Description

Accepts an unordered list of numbers or formulas separated by semicolons.

Notes

Examples

\begin{question}{Multi Formula}
\qutext{Find all roots of the polynomial $x^2+2x-24$.}
% Separate multiple entries of the answer with semicolons:
\answer{-6;4}
% Note that the response '4;-6' would also be graded as correct.
\end{question}
\begin{question}{Multi Formula}
\qutext{Find all exact solutions of the following system of equations:
\begin{align*}
x^2+y^2-4x&=0\\
x+y&=4
\end{align*}
}
% Note: The 'amsmath' package is needed to use the 'align' environment.
\answer{(2,2);(4,0)}
\end{question}
\begin{question}{Multi Formula}
% This question uses algorithmic variables.
\qutext{Find all roots of the polynomial $x^2+\var{b}x-\var{c}$.}
\answer{\var{p};-\var{q}}
\code{$p = range(1,5);
      $q = int($p+range(2,5));
      $b = int($q-$p);
      $c = int($p*$q);}
% The above code chooses random integers p and q, and then calculates
% the coefficients b and c. Care is taken to ensure that b and c are
% both positive and that b is not equal to 1. 
\end{question}