Formula List

Description

Accepts an ordered list of numbers or formulas separated by commas. Intended for questions asking for several values or formulas.

Notes

Examples

\begin{question}{Formula List}
\qutext{Compute the exact values of $\sin(\pi/3)$, $\cos(\pi/3)$, and
$\tan(\pi/3)$.}
% Separate the entries of the answer with commas:
\answer{sqrt(3)/2,1/2,sqrt(3)}
\end{question}
\begin{question}{Formula List}
% This question uses algorithmic variables.
\qutext{Find the slope $m$ and the vertical intercept $b$ of the line 
with the equation $y=\var{m}x+\var{b}$.}
\answer{\var{m},\var{b}}
\code{$m1 = range(2,10);
      $m = int(switch(rint(2),$m1,-$m1));
      $b = range(1,20);}
% The above code chooses random integer coefficients m and b.
% m has absolute value between 2 and 10. 
% b is a positive integer between 1 and 20.
\end{question}