Maple

Description

The Maple question type adds the capabilities of the Maple mathematical computation package to EDU. In Maple questions, the student's response can be passed directly to Maple for grading. Moreover, questions can include Maple-generated plots, and students can preview plots of their answers (provided that the answer is an expression suitable for plotting).

Notes

Examples

\begin{question}{Maple}
\qutext{What is the derivative of $x^2$?}
\type{formula} % to allow the student to enter "2x"
\maple{2*x}
\end{question}
\begin{question}{Maple}
\qutext{Find the solution to the initial-value
problem $xy'=\sin x$, $y(0)=0$. Give your answer
as the formula for $y(x)$.}
\maple{Si(x)}
% the response "int(sin(t)/t,t=0..x)" would be graded correct
\end{question}
\begin{question}{Maple}
\qutext{The graph of a trigonometric function $f(x)$
is given below.\\
\\
% the optional argument is the plot's width; the height will be 250
\drawMaplePlot[400]{2*sin(Pi*x + Pi/4)}{x}{-2}{2} % must capitalize Pi
\\
\\
The graph passes through the point $(1/4,2)$.\\
\\
Give a formula for $f(x)$.}
\maple{2*sin(Pi*x + Pi/4)}
\plot{x}{-2}{2} % you really wouldn't use \plot for this
                % question, since it gives away the answer
\end{question}