\SQRT{6}{\SQRTSIX}
\newcpoly{\functionf}{1}{-0.66667}{-0.16667}{0.11111}
\setlength{\unitlength}{2cm}
\begin{center}
 \begin{Picture}(-3.5,-2.5)(4.5,3.5)
\renewcommand{\xunitdivisions}{10}
\renewcommand{\yunitdivisions}{10}
\cartesiangrid(-3,-2)(4,3)
\pictcolor{red}
\PlotFunction{\functionf}{-3}{-\SQRTSIX}
\PlotFunction[4]{\functionf}{-\SQRTSIX}{-1}
\PlotFunction[4]{\functionf}{-1}{0}
\PlotFunction[4]{\functionf}{0}{0.5}
\PlotFunction[4]{\functionf}{0.5}{1.5}
\PlotFunction[4]{\functionf}{1.5}{2}
\PlotFunction[4]{\functionf}{2}{\SQRTSIX}
\PlotFunction{\functionf}{\SQRTSIX}{4}
\functionf{-1}{\tempf}{\tempDf}
\xLINE(-1,0)(-1,\tempf)
\functionf{2}{\tempf}{\tempDf}
\xLINE(2,0)(2,\tempf)
\functionf{0.5}{\tempf}{\tempDf}
\xLINE(0.5,0)(0.5,\tempf)
\end{Picture}
\end{center}
