Download Maple T.A. User Guide

Transcript
11.8 Math Question Authoring using LaTeX • 269
\blank[formula]{-1} $< x <$ \blank[formula]{1}.}
\end{question}
Example 3
\begin{question}{Blanks}
\qutext{The maximum value of the function
$f(x)=\displaystyle\frac{x}{1+2x^2}$ is
\blank[formula]{0.353553 ? 0.0001} and the minimum value is
\blank[formula]{-0.353553 ? 0.0001}. Your answers must be correct to at least 4 decimal places.}
\end{question}
Example 4
\begin{question}{Blanks}
% This question mixes the [menu] and [formula] options.
\qutext{The graph of the function $f(x)=(x-3)^2$ is the same as the
graph of $g(x)=x^2$ shifted to the \blank[menu]{right, left}
\blank[formula]{3} units.}
\end{question}
Example 5
\begin{question}{blanks}
% This question uses randomized variables.
\qutext{An earthquake that measures $\var{a}$ on the Richter scale is
\blank[formula]{\var{ans}} times more powerful than one that measures
$\var{b}$. Your answer must be exact.}
\code{
$a=rand(5,9,2);
$inc=int(rint(3)+2);
$b=$a-$inc;
$ans=int(10^$inc);
}
% The above code chooses a random value $a between 5 and 9, to two
% significant figures. $b will be 2, 3, or 4 less than $a. \end{question}
Constants of Integration Questions in LaTeX
Question Mode: Formula mod C
The Formula Mod C question type is similar to the Formula type. Answers can be any kind of formula, entered in
calculator syntax, but responses are graded as correct if they differ from the given answer by a constant value. Answers
can include variables and standard functions. This question type is designed for indefinite integral questions.
Note:
• The \answer field must be in calculator syntax, not in TeX. Enter the answer as you expect the student to enter
it (although equivalent answers are graded correct). Do not include + C in the answer.
Example 1
\begin{question}{Formula mod C}
\qutext{Calculate $\int 6x^2\, dx$.}
% Use calculator syntax for the answer, not TeX.
\answer{2x^3}
% Note: The response '2x^3+1' is also graded correct.
\end{question}
Example 2
\begin{question}{Formula mod C}
% This question uses randomized variables.
\qutext{Calculate $\int \var{a}x+\var{b}\, dx$.}