\answer
commands optional argument)
and the expression you want for the plane is, say, , then you would use the
following:Plug in any expression that generates the plane defined by $x + y + 2z = 0$. \begin{validator}[{testPlane([x,y,z],[1,1,2])}] \[ \answer[id=x]{1}x + \answer[id=y]{1}y + \answer[id=y]{2}z = 0 \] \end{validator}
The code is demonstrated below, try various equal and non-equal coefficients and see how it goes. Note that this also works correctly if you feel like making some of the coefficients zero for whatever reason.
Plug in any expression that generates the plane defined by .
As a footnote, due to peculiar coding, the value included the the answer command’s
mandatory argument is never used. So you could have used \answer[id=x]{673}
instead of \answer[id=x]{1}
and as long as you entered the correct values into the
validator environment, it would still only take correct answers for the coefficient.