This problem shows the ’samePlane’ validator. It’s intended to detect any equivalent expression that generates the same plane. Note that formatting is tricky for authoring the problem as it requires that you use the validator environment to test multiple answer boxes simultaneously, and you must enter the predicted answers and the ids of the supplied answers in as lists using brackets, and in the same order. Thus if your id for the coefficient has ‘id=x’, the coefficient has ‘id=y’ and the coefficient has ‘id=z’ (in their respective \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.

2024-06-24 13:18:20