Multi Formula Questions in LaTeX

Question Mode: Multi Formula

 

The Multi Formula question type accepts an unordered list of numbers or formulas separated by semicolons.

Notes

Example 1

\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}

Example 2

\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}

Example 3

\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}