Sketch

Description

Displays introductory text accompanied by a blank set of axes. The student draws a graph on the axes by clicking at points to be used as interpolation nodes.

Notes

Examples

\begin{question}{Sketch}
\qutext{Sketch the graph of the function $y=x+1$.}
\begin{sketch}[4]{-2}{2}{-2}{2}
  \example{-2,1  1,2}
  \check{linear}
  \check{goes_through(0,1)}
\end{sketch}
\end{question}
\begin{question}{Sketch}
\code{$a = range(2,5);
      $xmax = int(2*$a);
      $x = sqrt(2)*$a;}
\qutext{Sketch the graph of the function $y=x^2/\var{$a*$a}$.}
\begin{sketch}[4]{-\var{xmax}}{\var{xmax}}{-2}{2}
  \example{-\var{x},2  -\var{a},1  0,0  \var{a},1  \var{x},2}
  \check{goes_through(0,0) && goes_through(-\var{a},1)
         && goes_through(\var{a},1)}
  \check{slope_at(0) == 0}
  \check[-\var{x},0]{decreasing}
  \check[0,\var{x}]{increasing}
  \check{concave_up}
\end{sketch}
\end{question}