| 1 |
\documentclass[pst2pdf]{webquiz} |
| 2 |
\usepackage{pst-all,pst-3dplot} |
| 3 |
\title{A pst2pdf example} |
| 4 |
\begin{document} |
| 5 |
\begin{question} % a quiz question |
| 6 |
Which of the equations below could describe the following surface? |
| 7 |
|
| 8 |
\begin{pspicture*}(-4,-4)(4,4) |
| 9 |
\psplotThreeD[linecolor=blue, plotstyle=curve, drawStyle=yLines, |
| 10 |
yPlotpoints=30, xPlotpoints=30, linewidth=1pt](-4,1)(-4,1){ |
| 11 |
x dup mul y dup mul add 1.01 exp} |
| 12 |
\pstThreeDCoor[linewidth=1pt, xMin=-4,xMax=4,yMin=-4,yMax=4,zMin=-2,zMax=6] |
| 13 |
\end{pspicture*} |
| 14 |
|
| 15 |
\begin{choice} |
| 16 |
\incorrect \( z=\log(x^2+y^2) \) |
| 17 |
\correct \( z=e^{x^2+y^2} \) |
| 18 |
\incorrect \( z=1-e^{x^2+y^2} \) |
| 19 |
\incorrect \( z=\dfrac1{x^2+y^2}\) |
| 20 |
\end{choice} |
| 21 |
\end{question} |
| 22 |
\end{document} |