The Multi Formula question type accepts an unordered list of numbers or formulas separated by semicolons.
This is an unordered list. The entries in the student response do not need to appear in the same order as in the correct answer.
This type is commonly used for solutions of equations.
This type can also be used for unordered lists of ntuples (questions requiring coordinates of points or vectors).
A question that has a single formula answer is graded correct if you use this type. For example, consider the question of finding all solutions to a given equation that has only one solution, but is of a type that may have more. It is recommended that you use the Multi Formula type because the Formula type indicates to the student that there is only one solution.
\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: The response '4;-6' is graded 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 randomized variables.
\qutext{Find all roots of the polynomial $x^2+\var{b}x-\var{c}$.}
\answer{\var{p};-\var{q}}
\code{
$p=int(rint(5)+1);
$q=int($p+rint(4)+2);
$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. Note: b and c are both positive and
% b is not equal to 1.
\end{question}