Description
Accepts an unordered list of numbers or
formulas separated by semicolons.
Notes
- This is an unordered list, so the entries
need not appear in the same order as in the given correct
answer.
- This type is commonly used for solutions
of equations.
- Although the name does not suggest it,
this type can also be used for unordered lists of
ntuples.
- A question which has a single formula
answer will still be graded correctly if this type is used.
For example, suppose the question asks for all solutions to
a given equation, but there actually is just one solution.
Then it is a good idea to use the Multi Formula type, since the
Formula type
would provide a clue to the student that there really is
only one solution.
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}