<?xml version="1.0" encoding="UTF-8"?>
<quiz>
<!-- question: 0  -->
  <question type="category">
    <category>
      <text>$course$/top/Lineare Algebra</text>
    </category>
    <info format="moodle_auto_format">
      <text></text>
    </info>
    <idnumber></idnumber>
  </question>

<!-- question: 0  -->
  <question type="category">
    <category>
      <text>$course$/top/Lineare Algebra/Lagebeziehungen</text>
    </category>
    <info format="moodle_auto_format">
      <text></text>
    </info>
    <idnumber></idnumber>
  </question>

<!-- question: 0  -->
  <question type="category">
    <category>
      <text>$course$/top/Lineare Algebra/Lagebeziehungen/Punkte und Polygone</text>
    </category>
    <info format="moodle_auto_format">
      <text></text>
    </info>
    <idnumber></idnumber>
  </question>

<!-- question: 966585  -->
  <question type="stack">
    <name>
      <text>Lagebeziehung von Punkten und Polygonen (1) (Parallelogramme)</text>
    </name>
    <questiontext format="html">
      <text><![CDATA[<p style="text-align: justify;">Sei \(p\in \mathbb{R}^3\) ein Punkt mit Ortsvektor \(\vec{p}\) und sei 
\(E\) eine Ebene in \(\mathbb{R}^3\), die durch die Abbildung</p>
<p style="text-align: justify;margin-left:30px">\(\displaystyle h : \mathbb{R}^2 \to \mathbb{R}^3\), \(\displaystyle (s_1,s_2) \mapsto \vec{q} + s_1 \, \vec{w}_1 + s_2 \, \vec{w}_2\)</p>
<p style="text-align: justify;">parametrisiert wird. Die Menge </p>
<p style="text-align: justify;margin-left:30px">
\(\displaystyle P = \{ h(s_1,s_2) \mid 0 \leq s_1 \leq 1,\; 0 \leq s_2 \leq 1\}\)
</p>
<p style="text-align: justify;">definiert ein Parallelogramm in \(E\). Im Folgenden seien 
<p style="text-align: justify;margin-left:30px">
\(\displaystyle\vec{p} = {@pVec@}\),&nbsp&nbsp&nbsp&nbsp
\(\displaystyle\vec{q} = {@qVec@}\),&nbsp&nbsp&nbsp&nbsp
\(\displaystyle\vec{w}_1 = {@w1Vec@}\),&nbsp&nbsp&nbsp&nbsp
\(\displaystyle\vec{w}_2 = {@w2Vec@}\)&nbsp.
</p>
<hr>
<p style="text-align: justify;">(a) Bestimmen Sie reelle Zahlen \(s_1, \, s_2 \in \mathbb{R}\) mit \(p = h(s_1,s_2)\) und geben Sie \(s_1\) und \(s_2\) in (i) exakt an. Entscheiden Sie mithilfe von \(s_1\) und \(s_2\), ob der Punkt \(p\) Element von \(P\) ist. Vervollständigen Sie dazu den Lückentext in (ii).</p>
<p style="text-align: justify;">(i) Es ist \(s_1 = \, \)[[input:ans2]] und es ist \(s_2 = \, \)[[input:ans3]] .</p>
<p style="text-align: justify;">[[validation:ans2]][[validation:ans3]]</p>
<p style="text-align: justify;">[[feedback:prt2]]</p>
<p style="text-align: justify;">(ii) Der Punkt \(p\) ist [[input:ans1]] Element von \(P\).
<p style="text-align: justify;">[[validation:ans1]]</p>
<p style="text-align: justify;">[[feedback:prt1]]</p>
<hr>
<p style="text-align: justify;">(b) Geben Sie den Ortsvektor \(\vec{r}\) eines Punktes \(r \in E\) an, der {@ TextMod1@} Element von \(P\) ist.</p>
Es ist \(\vec{r} = \, \)[[input:ans4]] .
<p style="text-align: justify;">[[validation:ans4]]</p>
<p style="text-align: justify;">[[feedback:prt3]]</p>
<hr>]]></text>
    </questiontext>
    <generalfeedback format="html">
      <text><![CDATA[<p style="text-align: justify;">zu (a)(i) Die Bedingung</p>
<p style="text-align: justify;margin-left:30px">
\(\displaystyle \vec{p} = h(s_1,s_2) = \vec{q} + s_1 \, \vec{w}_1 + s_2 \, \vec{w}_2\)
</p>
<p style="text-align: justify;">ist ein überbestimmtes lineares Gleichungssystem, das sich eindeutig lösen lässt zu \(s_1 = {@ TAnsA11@}\) und \(s_2 = {@ TAnsA12@}\).</p>
<hr>
<p style="text-align: justify;">zu (a)(ii) Es ist </p>
<p style="text-align: justify;margin-left:30px">
\(\displaystyle {@ListComp5[1][1][1][3]@}\),&nbsp&nbsp&nbsp
\(\displaystyle {@ListComp5[1][1][1][4]@}\).
</p>
<p style="text-align: justify;">Folglich ist \(p\) {@ListComp5[1][2]@} Element von \(P\).
<hr>
<p style="text-align: justify;">zu (b) Für \(t_1 = {@ListComp5[2][1][1][1]@}\) und \(t_2 = {@ListComp5[2][1][1][2]@}\) gilt</p>
<p style="text-align: justify;margin-left:30px">
\(\displaystyle {@ListComp5[2][1][1][3]@}\),&nbsp&nbsp&nbsp
\(\displaystyle {@ListComp5[2][1][1][4]@}\).
</p>
<p style="text-align: justify;">Der Punkt \(r\) mit dem Ortsvektor</p>
<p style="text-align: justify;margin-left:30px">
\(\displaystyle \vec{r} = h(t_1,t_2) = \vec{q} + t_1 \, \vec{w}_1 + t_2 \, \vec{w}_2\)
</p>
<p style="text-align: justify;">ist folglich {@ListComp5[2][2]@} Element von \(P\). Dabei ist</p>
<p style="text-align: justify;margin-left:30px">
\(\displaystyle \vec{r} = {@rVec@}\).
</p>]]></text>
    </generalfeedback>
    <defaultgrade>1.0000000</defaultgrade>
    <penalty>0.0000000</penalty>
    <hidden>0</hidden>
    <idnumber></idnumber>
    <stackversion>
      <text>2023010400</text>
    </stackversion>
    <questionvariables>
      <text><![CDATA[/*
  Lagebeziehung von Punkten und Polygonen (1) (Parallelogramme)

  wurde entwickelt von
 
    Benjamin Herbert Schulz-Rosenberger <benjamin.schulz-c95[at]ruhr-uni-bochum.de>

  nach einer Idee von
 
    Benjamin Herbert Schulz-Rosenberger <benjamin.schulz-c95[at]ruhr-uni-bochum.de>

  an der Ruhr-Universität Bochum.

  Dieses Werk ist lizenziert unter einer Creative Commons
  Namensnennung-Weitergabe unter gleichen Bedingungen 4.0 International
  Lizenz. Um eine Kopie der Lizenz zu erhalten, besuchen Sie
  http://creativecommons.org/licenses/by-sa/4.0/.

  SPDX-License-Identifier: CC-BY-SA-4.0

*/

/* ---------------------------------------------------------- */
/* ---------------------------------------------------------- */
/* ---------------------------------------------------------- */

/* Notation */

texput(IneqTrue1,"0 \\leq s_1 \\leq 1");
texput(IneqFalse1,"s_1 \\leq 0");

texput(IneqTrue2,"0 \\leq s_2 \\leq 1");
texput(IneqFalse2,"s_2 \\leq 0");


/* Definition des Kreuzprodukts */
VectorProduct(a,b) :=
  matrix(a[2]*b[3]-a[3]*b[2],
   a[3]*b[1]-a[1]*b[3],
   a[1]*b[2]-a[2]*b[1])

/* --- */
ListComp1 : random_permutation([-1,0,1,2,3]);
ListComp2 : random_permutation([-1,1,2]);
ListComp3 : random_permutation([-1,1]);

/* Definition des Ortsvektors qVec und der linear unabhängigen Stützvektoren w1Vec, w2Ve */
qVec : matrix([ListComp1[1]],[ListComp1[2]],[ListComp1[3]]);

u1Vec : matrix([ListComp2[1]],[ListComp2[2]],[ListComp2[3]]);
u2Vec : ListComp3[1]*matrix([ListComp2[2]],[ListComp2[1]],[0]);
u3Vec : ListComp3[1]*matrix([ListComp2[3]],[0],[ListComp2[1]]);
u4Vec : ListComp3[1]*matrix([0],[ListComp2[3]],[ListComp2[2]]);

List1Vec : random_permutation([u2Vec,u3Vec,u4Vec]);
List2Vec : random_permutation([u1Vec,List1Vec[1]]);

Coeff1 :  rand([2,3,5]);

w1Vec : Coeff1*List2Vec[1];
w2Vec : Coeff1*List2Vec[2];
w3Vec : List1Vec[2]; /* w3Vec ergänzt w1Vec und w2Vec zu einer Basis */

/* Definition des Ortsvektors pVec und rVec*/

CoeffDiv(x) := x/Coeff1;

CoeffList : makelist(i,i,1,Coeff1-1);
Coeff2 : rand(map(CoeffDiv, CoeffList));

ListComp5 : random_permutation([
[[[Coeff2, Coeff2, IneqTrue1, IneqTrue2]],"ein",true],
[random_permutation([[-Coeff2, Coeff2,  IneqFalse1, IneqTrue2],[Coeff2,-Coeff2,  IneqTrue1, IneqFalse2],[-Coeff2,-Coeff2,  IneqFalse1, IneqFalse2]]),"kein",false]
])

pVec : qVec + ListComp5[1][1][1][1]*w1Vec + ListComp5[1][1][1][2]*w2Vec;
rVec : qVec + ListComp5[2][1][1][1]*w1Vec + ListComp5[2][1][1][2]*w2Vec;

/* Objekte zur Überprüfung der Antwort der Studierenden */
MakeIntoLine(M) := [M[1][1],M[2][1],M[3][1]];
MatrixA : transpose(matrix(MakeIntoLine(w1Vec), MakeIntoLine(w2Vec), MakeIntoLine(w3Vec)));
InverseA : invert(MatrixA);

/* Antworten */
TAnsA11 : ListComp5[1][1][1][1];
TAnsA12 : ListComp5[1][1][1][2];
TAnsA2 : [[1,true,ListComp5[1][2]],[2,false,ListComp5[2][2]]];
TAnsB : rVec;

/* Falsche Antwort */
TAnsA11W1 : ListComp5[2][1][1][1];
TAnsA12W1 : ListComp5[2][1][1][2];

TAnsBW1 : pVec + w3Vec;
TAnsBW2 : pVec;

/* Text */
TextMod1 : ListComp5[2][2];]]></text>
    </questionvariables>
    <specificfeedback format="html">
      <text></text>
    </specificfeedback>
    <questionnote>
      <text>Hinweis</text>
    </questionnote>
    <questionsimplify>1</questionsimplify>
    <assumepositive>0</assumepositive>
    <assumereal>0</assumereal>
    <prtcorrect format="html">
      <text></text>
    </prtcorrect>
    <prtpartiallycorrect format="html">
      <text></text>
    </prtpartiallycorrect>
    <prtincorrect format="html">
      <text></text>
    </prtincorrect>
    <multiplicationsign>none</multiplicationsign>
    <sqrtsign>1</sqrtsign>
    <complexno>i</complexno>
    <inversetrig>cos-1</inversetrig>
    <logicsymbol>lang</logicsymbol>
    <matrixparens>(</matrixparens>
    <variantsselectionseed></variantsselectionseed>
    <input>
      <name>ans1</name>
      <type>dropdown</type>
      <tans>TAnsA2</tans>
      <boxsize>5</boxsize>
      <strictsyntax>1</strictsyntax>
      <insertstars>0</insertstars>
      <syntaxhint></syntaxhint>
      <syntaxattribute>0</syntaxattribute>
      <forbidwords></forbidwords>
      <allowwords></allowwords>
      <forbidfloat>0</forbidfloat>
      <requirelowestterms>0</requirelowestterms>
      <checkanswertype>0</checkanswertype>
      <mustverify>0</mustverify>
      <showvalidation>0</showvalidation>
      <options></options>
    </input>
    <input>
      <name>ans2</name>
      <type>algebraic</type>
      <tans>TAnsA11</tans>
      <boxsize>5</boxsize>
      <strictsyntax>1</strictsyntax>
      <insertstars>0</insertstars>
      <syntaxhint></syntaxhint>
      <syntaxattribute>0</syntaxattribute>
      <forbidwords></forbidwords>
      <allowwords></allowwords>
      <forbidfloat>0</forbidfloat>
      <requirelowestterms>0</requirelowestterms>
      <checkanswertype>1</checkanswertype>
      <mustverify>0</mustverify>
      <showvalidation>0</showvalidation>
      <options></options>
    </input>
    <input>
      <name>ans3</name>
      <type>algebraic</type>
      <tans>TAnsA12</tans>
      <boxsize>5</boxsize>
      <strictsyntax>1</strictsyntax>
      <insertstars>0</insertstars>
      <syntaxhint></syntaxhint>
      <syntaxattribute>0</syntaxattribute>
      <forbidwords></forbidwords>
      <allowwords></allowwords>
      <forbidfloat>0</forbidfloat>
      <requirelowestterms>0</requirelowestterms>
      <checkanswertype>1</checkanswertype>
      <mustverify>0</mustverify>
      <showvalidation>0</showvalidation>
      <options></options>
    </input>
    <input>
      <name>ans4</name>
      <type>matrix</type>
      <tans>TAnsB</tans>
      <boxsize>5</boxsize>
      <strictsyntax>1</strictsyntax>
      <insertstars>0</insertstars>
      <syntaxhint></syntaxhint>
      <syntaxattribute>0</syntaxattribute>
      <forbidwords></forbidwords>
      <allowwords></allowwords>
      <forbidfloat>0</forbidfloat>
      <requirelowestterms>0</requirelowestterms>
      <checkanswertype>1</checkanswertype>
      <mustverify>0</mustverify>
      <showvalidation>0</showvalidation>
      <options></options>
    </input>
    <prt>
      <name>prt1</name>
      <value>1.0000000</value>
      <autosimplify>1</autosimplify>
      <feedbackstyle>1</feedbackstyle>
      <feedbackvariables>
        <text><![CDATA[AnswerCheck : is(ans2 >= 0) and is(ans3 >= 0) and is(ans2 <= 1) and is(ans3 <= 1);

TextMod2 : ""
if AnswerCheck then (
  TextMod2 : "ein"
  
) else (
  TextMod2 : "kein"
)]]></text>
      </feedbackvariables>
      <node>
        <name>1</name>
        <answertest>AlgEquiv</answertest>
        <sans>[ans2,ans3]</sans>
        <tans>[TAnsA11,TAnsA12]</tans>
        <testoptions></testoptions>
        <quiet>1</quiet>
        <truescoremode>+</truescoremode>
        <truescore>0</truescore>
        <truepenalty></truepenalty>
        <truenextnode>3</truenextnode>
        <trueanswernote>prt1-2-T</trueanswernote>
        <truefeedback format="html">
          <text></text>
        </truefeedback>
        <falsescoremode>+</falsescoremode>
        <falsescore>0</falsescore>
        <falsepenalty></falsepenalty>
        <falsenextnode>2</falsenextnode>
        <falseanswernote>prt1-2-F</falseanswernote>
        <falsefeedback format="html">
          <text></text>
        </falsefeedback>
      </node>
      <node>
        <name>2</name>
        <answertest>AlgEquiv</answertest>
        <sans>AnswerCheck</sans>
        <tans>ListComp5[ans1][3]</tans>
        <testoptions></testoptions>
        <quiet>1</quiet>
        <truescoremode>+</truescoremode>
        <truescore>0.5</truescore>
        <truepenalty></truepenalty>
        <truenextnode>-1</truenextnode>
        <trueanswernote>prt1-3-T</trueanswernote>
        <truefeedback format="html">
          <text><![CDATA[<p style="text-align: justify;">zu (a)(ii) Für die von Ihnen für \(s_1\) und \(s_2\) eingegebenen reellen Zahlen ist \(h(s_1,s_2)\) {@TextMod2@} Element von \(P\). Da für die von Ihnen für \(s_1\) und \(s_2\) eingegebenen reellen Zahlen \(h(s_1,s_2)\) und \(p\) nicht übereinstimmen, erlaubt dies allerdings keine Aussage darüber, ob \(p\) ein Element von \(P\) ist.</p>
<p style="text-align: justify;"><strong>Ihre Antwort zu (a)(ii) ist teilweise richtig.</strong></p>]]></text>
        </truefeedback>
        <falsescoremode>+</falsescoremode>
        <falsescore>0</falsescore>
        <falsepenalty></falsepenalty>
        <falsenextnode>-1</falsenextnode>
        <falseanswernote>prt1-3-F</falseanswernote>
        <falsefeedback format="html">
          <text><![CDATA[<p style="text-align: justify;">zu (a)(ii) Für die von Ihnen für \(s_1\) und \(s_2\) eingegebenen reellen Zahlen ist \(h(s_1,s_2)\) {@TextMod2@} Element von \(P\). Da für die von Ihnen für \(s_1\) und \(s_2\) eingegebenen reellen Zahlen \(h(s_1,s_2)\) und \(p\) nicht übereinstimmen, erlaubt dies allerdings keine Aussage darüber, ob \(p\) ein Element von \(P\) ist.</p>
<p style="text-align: justify;"><strong>Ihre Antwort zu (a)(ii) ist falsch.</strong></p>]]></text>
        </falsefeedback>
      </node>
      <node>
        <name>3</name>
        <answertest>AlgEquiv</answertest>
        <sans>ans1</sans>
        <tans>1</tans>
        <testoptions></testoptions>
        <quiet>1</quiet>
        <truescoremode>+</truescoremode>
        <truescore>1</truescore>
        <truepenalty></truepenalty>
        <truenextnode>-1</truenextnode>
        <trueanswernote>prt1-4-T</trueanswernote>
        <truefeedback format="html">
          <text><![CDATA[<p style="text-align: justify;">zu (a)(ii) Es ist \(p\) {@ListComp5[1][2]@} Element von \(P\).</p>
<p style="text-align: justify;"><strong>Ihre Antwort zu (a)(ii) ist richtig.</strong></p>]]></text>
        </truefeedback>
        <falsescoremode>-</falsescoremode>
        <falsescore>0</falsescore>
        <falsepenalty></falsepenalty>
        <falsenextnode>-1</falsenextnode>
        <falseanswernote>prt1-4-F</falseanswernote>
        <falsefeedback format="html">
          <text><![CDATA[<p style="text-align: justify;">zu (a)(ii) Es ist \(p\) {@ListComp5[1][2]@} Element von \(P\).</p>
<p style="text-align: justify;"><strong>Ihre Antwort zu (a)(ii) ist falsch.</strong></p>]]></text>
        </falsefeedback>
      </node>
    </prt>
    <prt>
      <name>prt2</name>
      <value>1.0000000</value>
      <autosimplify>1</autosimplify>
      <feedbackstyle>1</feedbackstyle>
      <feedbackvariables>
        <text></text>
      </feedbackvariables>
      <node>
        <name>0</name>
        <answertest>AlgEquiv</answertest>
        <sans>[ans2,ans3]</sans>
        <tans>[TAnsA11,TAnsA12]</tans>
        <testoptions></testoptions>
        <quiet>1</quiet>
        <truescoremode>+</truescoremode>
        <truescore>1</truescore>
        <truepenalty></truepenalty>
        <truenextnode>-1</truenextnode>
        <trueanswernote>prt4-1-T</trueanswernote>
        <truefeedback format="html">
          <text><![CDATA[<p style="text-align: justify;">zu (a)(i) Für die von Ihnen für \(s_1\) und \(s_2\) eingegebenen reellen Zahlen stimmen \(h(s_1,s_2)\) und \(p\) überein.</p>
<p style="text-align: justify;"><strong>Ihre Antwort zu (a)(i) ist richtig.</strong></p>]]></text>
        </truefeedback>
        <falsescoremode>+</falsescoremode>
        <falsescore>0</falsescore>
        <falsepenalty></falsepenalty>
        <falsenextnode>-1</falsenextnode>
        <falseanswernote>prt4-1-F</falseanswernote>
        <falsefeedback format="html">
          <text><![CDATA[<p style="text-align: justify;">zu (a)(i) Für die von Ihnen für \(s_1\) und \(s_2\) eingegebenen reellen Zahlen stimmen \(h(s_1,s_2)\) und \(p\) nicht überein.</p>
<p style="text-align: justify;"><strong>Ihre Antwort zu (a)(i) ist falsch.</strong></p>]]></text>
        </falsefeedback>
      </node>
    </prt>
    <prt>
      <name>prt3</name>
      <value>1.0000000</value>
      <autosimplify>1</autosimplify>
      <feedbackstyle>1</feedbackstyle>
      <feedbackvariables>
        <text><![CDATA[SAns : InverseA.(ans4-qVec); /* bestimmt Koeffizienten von ans4 bezüglich Basis w1Vec, w2Vec, w3Vec */
AnswerCheck : is(SAns[1][1] >= 0) and is(SAns[2][1] >= 0) and is(SAns[1][1] <= 1) and is(SAns[2][1] <= 1);

TextMod3 : ""
if AnswerCheck then (
  TextMod3 : "ein"
  
) else (
  TextMod3 : "kein"
)]]></text>
      </feedbackvariables>
      <node>
        <name>0</name>
        <answertest>AlgEquiv</answertest>
        <sans>SAns[3][1]</sans>
        <tans>0</tans>
        <testoptions></testoptions>
        <quiet>1</quiet>
        <truescoremode>+</truescoremode>
        <truescore>0</truescore>
        <truepenalty></truepenalty>
        <truenextnode>1</truenextnode>
        <trueanswernote>prt3-1-T</trueanswernote>
        <truefeedback format="html">
          <text></text>
        </truefeedback>
        <falsescoremode>+</falsescoremode>
        <falsescore>0</falsescore>
        <falsepenalty></falsepenalty>
        <falsenextnode>-1</falsenextnode>
        <falseanswernote>prt3-1-F</falseanswernote>
        <falsefeedback format="html">
          <text><![CDATA[<p style="text-align: justify;">zu (b) Der von Ihnen für \(\vec{r}\) eingegebene Vektor ist nicht der Ortsvektor eines Punktes in \(E\).</p>
<p style="text-align: justify;"><strong>Ihre Antwort zu (b) ist falsch.</strong></p>]]></text>
        </falsefeedback>
      </node>
      <node>
        <name>1</name>
        <answertest>AlgEquiv</answertest>
        <sans>AnswerCheck</sans>
        <tans>ListComp5[2][3]</tans>
        <testoptions></testoptions>
        <quiet>1</quiet>
        <truescoremode>+</truescoremode>
        <truescore>1</truescore>
        <truepenalty></truepenalty>
        <truenextnode>-1</truenextnode>
        <trueanswernote>prt3-2-T</trueanswernote>
        <truefeedback format="html">
          <text><![CDATA[<p style="text-align: justify;">zu (b) Der von Ihnen für \(\vec{r}\) eingegebene Vektor ist der Ortsvektor eines Punktes, der {@TextMod3@} Element von \(P\) ist.</p>
<p style="text-align: justify;"><strong>Ihre Antwort zu (b) ist richtig.</strong></p>]]></text>
        </truefeedback>
        <falsescoremode>-</falsescoremode>
        <falsescore>0</falsescore>
        <falsepenalty></falsepenalty>
        <falsenextnode>-1</falsenextnode>
        <falseanswernote>prt3-2-F</falseanswernote>
        <falsefeedback format="html">
          <text><![CDATA[<p style="text-align: justify;">zu (b) Der von Ihnen für \(\vec{r}\) eingegebene Vektor ist der Ortsvektor eines Punktes, der {@TextMod3@} Element von \(P\) ist.</p>
<p style="text-align: justify;"><strong>Ihre Antwort zu (b) ist falsch.</strong></p>]]></text>
        </falsefeedback>
      </node>
    </prt>
    <qtest>
      <testcase>1</testcase>
      <testinput>
        <name>ans1</name>
        <value>first(mcq_correct(TAnsA2))</value>
      </testinput>
      <testinput>
        <name>ans2</name>
        <value>TAnsA11</value>
      </testinput>
      <testinput>
        <name>ans3</name>
        <value>TAnsA12</value>
      </testinput>
      <testinput>
        <name>ans4</name>
        <value>TAnsB</value>
      </testinput>
      <expected>
        <name>prt1</name>
        <expectedscore>1.0000000</expectedscore>
        <expectedpenalty></expectedpenalty>
        <expectedanswernote>prt1-4-T</expectedanswernote>
      </expected>
      <expected>
        <name>prt2</name>
        <expectedscore>1.0000000</expectedscore>
        <expectedpenalty></expectedpenalty>
        <expectedanswernote>prt4-1-T</expectedanswernote>
      </expected>
      <expected>
        <name>prt3</name>
        <expectedscore>1.0000000</expectedscore>
        <expectedpenalty></expectedpenalty>
        <expectedanswernote>prt3-2-T</expectedanswernote>
      </expected>
    </qtest>
    <qtest>
      <testcase>2</testcase>
      <testinput>
        <name>ans1</name>
        <value>first(mcq_correct(TAnsA2))</value>
      </testinput>
      <testinput>
        <name>ans2</name>
        <value>TAnsA11W1</value>
      </testinput>
      <testinput>
        <name>ans3</name>
        <value>TAnsA12W1</value>
      </testinput>
      <testinput>
        <name>ans4</name>
        <value>TAnsBW1</value>
      </testinput>
      <expected>
        <name>prt1</name>
        <expectedscore>0.0000000</expectedscore>
        <expectedpenalty></expectedpenalty>
        <expectedanswernote>prt1-3-F</expectedanswernote>
      </expected>
      <expected>
        <name>prt2</name>
        <expectedscore>0.0000000</expectedscore>
        <expectedpenalty></expectedpenalty>
        <expectedanswernote>prt4-1-F</expectedanswernote>
      </expected>
      <expected>
        <name>prt3</name>
        <expectedscore>0.0000000</expectedscore>
        <expectedpenalty></expectedpenalty>
        <expectedanswernote>prt3-1-F</expectedanswernote>
      </expected>
    </qtest>
    <qtest>
      <testcase>3</testcase>
      <testinput>
        <name>ans1</name>
        <value>first(mcq_incorrect(TAnsA2))</value>
      </testinput>
      <testinput>
        <name>ans2</name>
        <value>TAnsA11W1</value>
      </testinput>
      <testinput>
        <name>ans3</name>
        <value>TAnsA12W1</value>
      </testinput>
      <testinput>
        <name>ans4</name>
        <value>TAnsBW2</value>
      </testinput>
      <expected>
        <name>prt1</name>
        <expectedscore>0.5000000</expectedscore>
        <expectedpenalty></expectedpenalty>
        <expectedanswernote>prt1-3-T</expectedanswernote>
      </expected>
      <expected>
        <name>prt2</name>
        <expectedscore>0.0000000</expectedscore>
        <expectedpenalty></expectedpenalty>
        <expectedanswernote>prt4-1-F</expectedanswernote>
      </expected>
      <expected>
        <name>prt3</name>
        <expectedscore>0.0000000</expectedscore>
        <expectedpenalty></expectedpenalty>
        <expectedanswernote>prt3-2-F</expectedanswernote>
      </expected>
    </qtest>
    <qtest>
      <testcase>4</testcase>
      <testinput>
        <name>ans1</name>
        <value>first(mcq_incorrect(TAnsA2))</value>
      </testinput>
      <testinput>
        <name>ans2</name>
        <value>TAnsA11</value>
      </testinput>
      <testinput>
        <name>ans3</name>
        <value>TAnsA12</value>
      </testinput>
      <testinput>
        <name>ans4</name>
        <value></value>
      </testinput>
      <expected>
        <name>prt1</name>
        <expectedscore>0.0000000</expectedscore>
        <expectedpenalty></expectedpenalty>
        <expectedanswernote>prt1-4-F</expectedanswernote>
      </expected>
      <expected>
        <name>prt2</name>
        <expectedscore>1.0000000</expectedscore>
        <expectedpenalty></expectedpenalty>
        <expectedanswernote>prt4-1-T</expectedanswernote>
      </expected>
      <expected>
        <name>prt3</name>
        <expectedscore></expectedscore>
        <expectedpenalty></expectedpenalty>
        <expectedanswernote>NULL</expectedanswernote>
      </expected>
    </qtest>
    <tags>
      <tag><text>Polygon</text>
</tag>
      <tag><text>Parallelogramm</text>
</tag>
      <tag><text>Lagebeziehung</text>
</tag>
      <tag><text>Punkt</text>
</tag>
      <tag><text>Ebene</text>
</tag>
    </tags>
  </question>

<!-- question: 966586  -->
  <question type="stack">
    <name>
      <text>Lagebeziehung von Punkten und Polygonen (2) (Dreiecke)</text>
    </name>
    <questiontext format="html">
      <text><![CDATA[<p style="text-align: justify;">Sei \(p\in \mathbb{R}^3\) ein Punkt mit Ortsvektor \(\vec{p}\) und sei 
\(E\) eine Ebene in \(\mathbb{R}^3\), die durch die Abbildung</p>
<p style="text-align: justify;margin-left:30px">\(\displaystyle h : \mathbb{R}^2 \to \mathbb{R}^3\), \(\displaystyle (s_1,s_2) \mapsto \vec{q} + s_1 \, \vec{w}_1 + s_2 \, \vec{w}_2\)</p>
<p style="text-align: justify;">parametrisiert wird. Die Menge </p>
<p style="text-align: justify;margin-left:30px">
\(\displaystyle D = \{ h(s_1,s_2) \mid 0 \leq s_1,\; 0 \leq s_2,\; s_1+s_2 \leq 1\}\)
</p>
<p style="text-align: justify;">definiert ein Dreieck in \(E\). Im Folgenden seien 
<p style="text-align: justify;margin-left:30px">
\(\displaystyle\vec{p} = {@pVec@}\),&nbsp&nbsp&nbsp&nbsp
\(\displaystyle\vec{q} = {@qVec@}\),&nbsp&nbsp&nbsp&nbsp
\(\displaystyle\vec{w}_1 = {@w1Vec@}\),&nbsp&nbsp&nbsp&nbsp
\(\displaystyle\vec{w}_2 = {@w2Vec@}\)&nbsp.
</p>
<hr>
<p style="text-align: justify;">(a) Bestimmen Sie reelle Zahlen \(s_1, \, s_2 \in \mathbb{R}\) mit \(p = h(s_1,s_2)\) und geben Sie \(s_1\) und \(s_2\) in (i) exakt an. Entscheiden Sie mithilfe von \(s_1\) und \(s_2\), ob der Punkt \(p\) Element von \(D\) ist. Vervollständigen Sie dazu den Lückentext in (ii).</p>
<p style="text-align: justify;">(i) Es ist \(s_1 = \, \)[[input:ans2]] und es ist \(s_2 = \, \)[[input:ans3]] .</p>
<p style="text-align: justify;">[[validation:ans2]][[validation:ans3]]</p>
<p style="text-align: justify;">[[feedback:prt2]]</p>
<p style="text-align: justify;">(ii) Der Punkt \(p\) ist [[input:ans1]] Element von \(D\).
<p style="text-align: justify;">[[validation:ans1]]</p>
<p style="text-align: justify;">[[feedback:prt1]]</p>
<hr>
<p style="text-align: justify;">(b) Geben Sie den Ortsvektor \(\vec{r}\) eines Punktes \(r \in E\) an, der {@ TextMod1@} Element von \(D\) ist.</p>
Es ist \(\vec{r} = \, \)[[input:ans4]] .
<p style="text-align: justify;">[[validation:ans4]]</p>
<p style="text-align: justify;">[[feedback:prt3]]</p>
<hr>]]></text>
    </questiontext>
    <generalfeedback format="html">
      <text><![CDATA[<p style="text-align: justify;">zu (a)(i) Die Bedingung</p>
<p style="text-align: justify;margin-left:30px">
\(\displaystyle \vec{p} = h(s_1,s_2) = \vec{q} + s_1 \, \vec{w}_1 + s_2 \, \vec{w}_2\)
</p>
<p style="text-align: justify;">ist ein überbestimmtes lineares Gleichungssystem, das sich eindeutig lösen lässt zu \(s_1 = {@ TAnsA11@}\) und \(s_2 = {@ TAnsA12@}\).</p>
<hr>
<p style="text-align: justify;">zu (a)(ii) Es ist </p>
<p style="text-align: justify;margin-left:30px">
\(\displaystyle s_1 \; {@ListComp5[1][1][1][3]@} \; 0 \),&nbsp&nbsp&nbsp
\(\displaystyle s_2 \; {@ListComp5[1][1][1][4]@} \; 0 \),&nbsp&nbsp&nbsp
\(\displaystyle s_1 + s_2 \leq 1 \).
</p>
<p style="text-align: justify;">Folglich ist \(p\) {@ListComp5[1][2]@} Element von \(D\).
<hr>
<p style="text-align: justify;">zu (b) Für \(t_1 = {@ListComp5[2][1][1][1]@}\) und \(t_2 = {@ListComp5[2][1][1][2]@}\) gilt</p>
<p style="text-align: justify;margin-left:30px">
\(\displaystyle t_1 \; {@ListComp5[2][1][1][3]@} \; 0 \),&nbsp&nbsp&nbsp
\(\displaystyle t_2 \; {@ListComp5[2][1][1][4]@} \; 0 \),&nbsp&nbsp&nbsp
\(\displaystyle t_1 + t_2 \leq 1 \).
</p>
<p style="text-align: justify;">Der Punkt \(r\) mit dem Ortsvektor</p>
<p style="text-align: justify;margin-left:30px">
\(\displaystyle \vec{r} = h(t_1,t_2) = \vec{q} + t_1 \, \vec{w}_1 + t_2 \, \vec{w}_2\)
</p>
<p style="text-align: justify;">ist folglich {@ListComp5[2][2]@} Element von \(D\). Dabei ist</p>
<p style="text-align: justify;margin-left:30px">
\(\displaystyle \vec{r} = {@rVec@}\).
</p>]]></text>
    </generalfeedback>
    <defaultgrade>1.0000000</defaultgrade>
    <penalty>0.0000000</penalty>
    <hidden>0</hidden>
    <idnumber></idnumber>
    <stackversion>
      <text>2023010400</text>
    </stackversion>
    <questionvariables>
      <text><![CDATA[/*
  Lagebeziehung von Punkten und Polygonen (2) (Dreiecke)

  wurde entwickelt von
 
    Benjamin Herbert Schulz-Rosenberger <benjamin.schulz-c95[at]ruhr-uni-bochum.de>

  nach einer Idee von
 
    Benjamin Herbert Schulz-Rosenberger <benjamin.schulz-c95[at]ruhr-uni-bochum.de>

  an der Ruhr-Universität Bochum.

  Dieses Werk ist lizenziert unter einer Creative Commons
  Namensnennung-Weitergabe unter gleichen Bedingungen 4.0 International
  Lizenz. Um eine Kopie der Lizenz zu erhalten, besuchen Sie
  http://creativecommons.org/licenses/by-sa/4.0/.

  SPDX-License-Identifier: CC-BY-SA-4.0

*/

/* ---------------------------------------------------------- */
/* ---------------------------------------------------------- */
/* ---------------------------------------------------------- */

/* Notation */

texput(leq,"\\leq");
texput(geq,"\\geq");

/* Definition des Kreuzprodukts */
VectorProduct(a,b) :=
  matrix(a[2]*b[3]-a[3]*b[2],
   a[3]*b[1]-a[1]*b[3],
   a[1]*b[2]-a[2]*b[1])

/* --- */
ListComp1 : random_permutation([-1,0,1,2,3]);
ListComp2 : random_permutation([-1,1,2]);
ListComp3 : random_permutation([-1,1]);
ListComp4 : random_permutation([2,3]);

/* Definition des Ortsvektors qVec und der linear unabhängigen Stützvektoren w1Vec, w2Ve */
qVec : matrix([ListComp1[1]],[ListComp1[2]],[ListComp1[3]]);

u1Vec : matrix([ListComp2[1]],[ListComp2[2]],[ListComp2[3]]);
u2Vec : ListComp3[1]*matrix([ListComp2[2]],[ListComp2[1]],[0]);
u3Vec : ListComp3[1]*matrix([ListComp2[3]],[0],[ListComp2[1]]);
u4Vec : ListComp3[1]*matrix([0],[ListComp2[3]],[ListComp2[2]]);

List1Vec : random_permutation([u2Vec,u3Vec,u4Vec]);
List2Vec : random_permutation([u1Vec,List1Vec[1]]);

Coeff1 :  ListComp4[1];

w1Vec : Coeff1*List2Vec[1];
w2Vec : Coeff1*List2Vec[2];
w3Vec : List1Vec[2]; /* w3Vec ergänzt w1Vec und w2Vec zu einer Basis */

/* Definition des Ortsvektors pVec und rVec*/

Coeff2 : 1/Coeff1;

ListComp5 : random_permutation([
[[[Coeff2, Coeff2, geq, geq]],"ein",true],
[random_permutation([[-Coeff2, Coeff2,  leq, geq],[Coeff2,-Coeff2,  geq, leq],[-Coeff2,-Coeff2,  leq, leq]]),"kein",false]
])

pVec : qVec + ListComp5[1][1][1][1]*w1Vec + ListComp5[1][1][1][2]*w2Vec;
rVec : qVec + ListComp5[2][1][1][1]*w1Vec + ListComp5[2][1][1][2]*w2Vec;

/* Objekte zur Überprüfung der Antwort der Studierenden */
MakeIntoLine(M) := [M[1][1],M[2][1],M[3][1]];
MatrixA : transpose(matrix(MakeIntoLine(w1Vec), MakeIntoLine(w2Vec), MakeIntoLine(w3Vec)));
InverseA : invert(MatrixA);

/* Antworten */
TAnsA11 : ListComp5[1][1][1][1];
TAnsA12 : ListComp5[1][1][1][2];
TAnsA2 : [[1,true,ListComp5[1][2]],[2,false,ListComp5[2][2]]];
TAnsB : rVec;

/* Falsche Antwort */
TAnsA11W1 : ListComp5[2][1][1][1];
TAnsA12W1 : ListComp5[2][1][1][2];

TAnsBW1 : pVec + w3Vec;
TAnsBW2 : pVec;

/* Text */
TextMod1 : ListComp5[2][2];]]></text>
    </questionvariables>
    <specificfeedback format="html">
      <text></text>
    </specificfeedback>
    <questionnote>
      <text>Hinweis</text>
    </questionnote>
    <questionsimplify>1</questionsimplify>
    <assumepositive>0</assumepositive>
    <assumereal>0</assumereal>
    <prtcorrect format="html">
      <text></text>
    </prtcorrect>
    <prtpartiallycorrect format="html">
      <text></text>
    </prtpartiallycorrect>
    <prtincorrect format="html">
      <text></text>
    </prtincorrect>
    <multiplicationsign>none</multiplicationsign>
    <sqrtsign>1</sqrtsign>
    <complexno>i</complexno>
    <inversetrig>cos-1</inversetrig>
    <logicsymbol>lang</logicsymbol>
    <matrixparens>(</matrixparens>
    <variantsselectionseed></variantsselectionseed>
    <input>
      <name>ans1</name>
      <type>dropdown</type>
      <tans>TAnsA2</tans>
      <boxsize>5</boxsize>
      <strictsyntax>1</strictsyntax>
      <insertstars>0</insertstars>
      <syntaxhint></syntaxhint>
      <syntaxattribute>0</syntaxattribute>
      <forbidwords></forbidwords>
      <allowwords></allowwords>
      <forbidfloat>0</forbidfloat>
      <requirelowestterms>0</requirelowestterms>
      <checkanswertype>0</checkanswertype>
      <mustverify>0</mustverify>
      <showvalidation>0</showvalidation>
      <options></options>
    </input>
    <input>
      <name>ans2</name>
      <type>algebraic</type>
      <tans>TAnsA11</tans>
      <boxsize>5</boxsize>
      <strictsyntax>1</strictsyntax>
      <insertstars>0</insertstars>
      <syntaxhint></syntaxhint>
      <syntaxattribute>0</syntaxattribute>
      <forbidwords></forbidwords>
      <allowwords></allowwords>
      <forbidfloat>0</forbidfloat>
      <requirelowestterms>0</requirelowestterms>
      <checkanswertype>1</checkanswertype>
      <mustverify>0</mustverify>
      <showvalidation>0</showvalidation>
      <options></options>
    </input>
    <input>
      <name>ans3</name>
      <type>algebraic</type>
      <tans>TAnsA12</tans>
      <boxsize>5</boxsize>
      <strictsyntax>1</strictsyntax>
      <insertstars>0</insertstars>
      <syntaxhint></syntaxhint>
      <syntaxattribute>0</syntaxattribute>
      <forbidwords></forbidwords>
      <allowwords></allowwords>
      <forbidfloat>0</forbidfloat>
      <requirelowestterms>0</requirelowestterms>
      <checkanswertype>1</checkanswertype>
      <mustverify>0</mustverify>
      <showvalidation>0</showvalidation>
      <options></options>
    </input>
    <input>
      <name>ans4</name>
      <type>matrix</type>
      <tans>TAnsB</tans>
      <boxsize>5</boxsize>
      <strictsyntax>1</strictsyntax>
      <insertstars>0</insertstars>
      <syntaxhint></syntaxhint>
      <syntaxattribute>0</syntaxattribute>
      <forbidwords></forbidwords>
      <allowwords></allowwords>
      <forbidfloat>0</forbidfloat>
      <requirelowestterms>0</requirelowestterms>
      <checkanswertype>1</checkanswertype>
      <mustverify>0</mustverify>
      <showvalidation>0</showvalidation>
      <options></options>
    </input>
    <prt>
      <name>prt1</name>
      <value>1.0000000</value>
      <autosimplify>1</autosimplify>
      <feedbackstyle>1</feedbackstyle>
      <feedbackvariables>
        <text><![CDATA[TriangleCheck : is(ans2 >= 0) and is(ans3 >= 0) and is(ans2 + ans3 <= 1);

TextMod2 : ""
if TriangleCheck then (
  TextMod2 : "ein"
  
) else (
  TextMod2 : "kein"
)]]></text>
      </feedbackvariables>
      <node>
        <name>1</name>
        <answertest>AlgEquiv</answertest>
        <sans>[ans2,ans3]</sans>
        <tans>[TAnsA11,TAnsA12]</tans>
        <testoptions></testoptions>
        <quiet>1</quiet>
        <truescoremode>+</truescoremode>
        <truescore>0</truescore>
        <truepenalty></truepenalty>
        <truenextnode>3</truenextnode>
        <trueanswernote>prt1-2-T</trueanswernote>
        <truefeedback format="html">
          <text></text>
        </truefeedback>
        <falsescoremode>+</falsescoremode>
        <falsescore>0</falsescore>
        <falsepenalty></falsepenalty>
        <falsenextnode>2</falsenextnode>
        <falseanswernote>prt1-2-F</falseanswernote>
        <falsefeedback format="html">
          <text></text>
        </falsefeedback>
      </node>
      <node>
        <name>2</name>
        <answertest>AlgEquiv</answertest>
        <sans>TriangleCheck</sans>
        <tans>ListComp5[ans1][3]</tans>
        <testoptions></testoptions>
        <quiet>1</quiet>
        <truescoremode>+</truescoremode>
        <truescore>0.5</truescore>
        <truepenalty></truepenalty>
        <truenextnode>-1</truenextnode>
        <trueanswernote>prt1-3-T</trueanswernote>
        <truefeedback format="html">
          <text><![CDATA[<p style="text-align: justify;">zu (a)(ii) Für die von Ihnen für \(s_1\) und \(s_2\) eingegebenen reellen Zahlen ist \(h(s_1,s_2)\) {@TextMod2@} Element von \(D\). Da für die von Ihnen für \(s_1\) und \(s_2\) eingegebenen reellen Zahlen \(h(s_1,s_2)\) und \(p\) nicht übereinstimmen, erlaubt dies allerdings keine Aussage darüber, ob \(p\) ein Element von \(D\) ist.</p>
<p style="text-align: justify;"><strong>Ihre Antwort zu (a)(ii) ist teilweise richtig.</strong></p>]]></text>
        </truefeedback>
        <falsescoremode>+</falsescoremode>
        <falsescore>0</falsescore>
        <falsepenalty></falsepenalty>
        <falsenextnode>-1</falsenextnode>
        <falseanswernote>prt1-3-F</falseanswernote>
        <falsefeedback format="html">
          <text><![CDATA[<p style="text-align: justify;">zu (a)(ii) Für die von Ihnen für \(s_1\) und \(s_2\) eingegebenen reellen Zahlen ist \(h(s_1,s_2)\) {@TextMod2@} Element von \(D\). Da für die von Ihnen für \(s_1\) und \(s_2\) eingegebenen reellen Zahlen \(h(s_1,s_2)\) und \(p\) nicht übereinstimmen, erlaubt dies allerdings keine Aussage darüber, ob \(p\) ein Element von \(D\) ist.</p>
<p style="text-align: justify;"><strong>Ihre Antwort zu (a)(ii) ist falsch.</strong></p>]]></text>
        </falsefeedback>
      </node>
      <node>
        <name>3</name>
        <answertest>AlgEquiv</answertest>
        <sans>ans1</sans>
        <tans>1</tans>
        <testoptions></testoptions>
        <quiet>1</quiet>
        <truescoremode>+</truescoremode>
        <truescore>1</truescore>
        <truepenalty></truepenalty>
        <truenextnode>-1</truenextnode>
        <trueanswernote>prt1-4-T</trueanswernote>
        <truefeedback format="html">
          <text><![CDATA[<p style="text-align: justify;">zu (a)(ii) Es ist \(p\) {@ListComp5[1][2]@} Element von \(D\).</p>
<p style="text-align: justify;"><strong>Ihre Antwort zu (a)(ii) ist richtig.</strong></p>]]></text>
        </truefeedback>
        <falsescoremode>-</falsescoremode>
        <falsescore>0</falsescore>
        <falsepenalty></falsepenalty>
        <falsenextnode>-1</falsenextnode>
        <falseanswernote>prt1-4-F</falseanswernote>
        <falsefeedback format="html">
          <text><![CDATA[<p style="text-align: justify;">zu (a)(ii) Es ist \(p\) {@ListComp5[1][2]@} Element von \(D\).</p>
<p style="text-align: justify;"><strong>Ihre Antwort zu (a)(ii) ist falsch.</strong></p>]]></text>
        </falsefeedback>
      </node>
    </prt>
    <prt>
      <name>prt2</name>
      <value>1.0000000</value>
      <autosimplify>1</autosimplify>
      <feedbackstyle>1</feedbackstyle>
      <feedbackvariables>
        <text></text>
      </feedbackvariables>
      <node>
        <name>0</name>
        <answertest>AlgEquiv</answertest>
        <sans>[ans2,ans3]</sans>
        <tans>[TAnsA11,TAnsA12]</tans>
        <testoptions></testoptions>
        <quiet>1</quiet>
        <truescoremode>+</truescoremode>
        <truescore>1</truescore>
        <truepenalty></truepenalty>
        <truenextnode>-1</truenextnode>
        <trueanswernote>prt4-1-T</trueanswernote>
        <truefeedback format="html">
          <text><![CDATA[<p style="text-align: justify;">zu (a)(i) Für die von Ihnen für \(s_1\) und \(s_2\) eingegebenen reellen Zahlen stimmen \(h(s_1,s_2)\) und \(p\) überein.</p>
<p style="text-align: justify;"><strong>Ihre Antwort zu (a)(i) ist richtig.</strong></p>]]></text>
        </truefeedback>
        <falsescoremode>+</falsescoremode>
        <falsescore>0</falsescore>
        <falsepenalty></falsepenalty>
        <falsenextnode>-1</falsenextnode>
        <falseanswernote>prt4-1-F</falseanswernote>
        <falsefeedback format="html">
          <text><![CDATA[<p style="text-align: justify;">zu (a)(i) Für die von Ihnen für \(s_1\) und \(s_2\) eingegebenen reellen Zahlen stimmen \(h(s_1,s_2)\) und \(p\) nicht überein.</p>
<p style="text-align: justify;"><strong>Ihre Antwort zu (a)(i) ist falsch.</strong></p>]]></text>
        </falsefeedback>
      </node>
    </prt>
    <prt>
      <name>prt3</name>
      <value>1.0000000</value>
      <autosimplify>1</autosimplify>
      <feedbackstyle>1</feedbackstyle>
      <feedbackvariables>
        <text><![CDATA[SAns : InverseA.(ans4-qVec); /* bestimmt Koeffizienten von ans4 bezüglich Basis w1Vec, w2Vec, w3Vec */
TriangleCheck : is(SAns[1][1] >= 0) and is(SAns[2][1] >= 0) and is(SAns[1][1] + SAns[2][1] <= 1);

TextMod3 : ""
if TriangleCheck then (
  TextMod3 : "ein"
  
) else (
  TextMod3 : "kein"
)]]></text>
      </feedbackvariables>
      <node>
        <name>0</name>
        <answertest>AlgEquiv</answertest>
        <sans>SAns[3][1]</sans>
        <tans>0</tans>
        <testoptions></testoptions>
        <quiet>1</quiet>
        <truescoremode>+</truescoremode>
        <truescore>0</truescore>
        <truepenalty></truepenalty>
        <truenextnode>1</truenextnode>
        <trueanswernote>prt3-1-T</trueanswernote>
        <truefeedback format="html">
          <text></text>
        </truefeedback>
        <falsescoremode>+</falsescoremode>
        <falsescore>0</falsescore>
        <falsepenalty></falsepenalty>
        <falsenextnode>-1</falsenextnode>
        <falseanswernote>prt3-1-F</falseanswernote>
        <falsefeedback format="html">
          <text><![CDATA[<p style="text-align: justify;">zu (b) Der von Ihnen für \(\vec{r}\) eingegebene Vektor ist nicht der Ortsvektor eines Punktes in \(E\).</p>
<p style="text-align: justify;"><strong>Ihre Antwort zu (b) ist falsch.</strong></p>]]></text>
        </falsefeedback>
      </node>
      <node>
        <name>1</name>
        <answertest>AlgEquiv</answertest>
        <sans>TriangleCheck</sans>
        <tans>ListComp5[2][3]</tans>
        <testoptions></testoptions>
        <quiet>1</quiet>
        <truescoremode>+</truescoremode>
        <truescore>1</truescore>
        <truepenalty></truepenalty>
        <truenextnode>-1</truenextnode>
        <trueanswernote>prt3-2-T</trueanswernote>
        <truefeedback format="html">
          <text><![CDATA[<p style="text-align: justify;">zu (b) Der von Ihnen für \(\vec{r}\) eingegebene Vektor ist der Ortsvektor eines Punktes, der {@ TextMod3@} Element von \(D\) ist.</p>
<p style="text-align: justify;"><strong>Ihre Antwort zu (b) ist richtig.</strong></p>]]></text>
        </truefeedback>
        <falsescoremode>-</falsescoremode>
        <falsescore>0</falsescore>
        <falsepenalty></falsepenalty>
        <falsenextnode>-1</falsenextnode>
        <falseanswernote>prt3-2-F</falseanswernote>
        <falsefeedback format="html">
          <text><![CDATA[<p style="text-align: justify;">zu (b) Der von Ihnen für \(\vec{r}\) eingegebene Vektor ist der Ortsvektor eines Punktes, der {@ TextMod3@} Element von \(D\) ist.</p>
<p style="text-align: justify;"><strong>Ihre Antwort zu (b) ist falsch.</strong></p>]]></text>
        </falsefeedback>
      </node>
    </prt>
    <qtest>
      <testcase>1</testcase>
      <testinput>
        <name>ans1</name>
        <value>first(mcq_correct(TAnsA2))</value>
      </testinput>
      <testinput>
        <name>ans2</name>
        <value>TAnsA11</value>
      </testinput>
      <testinput>
        <name>ans3</name>
        <value>TAnsA12</value>
      </testinput>
      <testinput>
        <name>ans4</name>
        <value>TAnsB</value>
      </testinput>
      <expected>
        <name>prt1</name>
        <expectedscore>1.0000000</expectedscore>
        <expectedpenalty></expectedpenalty>
        <expectedanswernote>prt1-4-T</expectedanswernote>
      </expected>
      <expected>
        <name>prt2</name>
        <expectedscore>1.0000000</expectedscore>
        <expectedpenalty></expectedpenalty>
        <expectedanswernote>prt4-1-T</expectedanswernote>
      </expected>
      <expected>
        <name>prt3</name>
        <expectedscore>1.0000000</expectedscore>
        <expectedpenalty></expectedpenalty>
        <expectedanswernote>prt3-2-T</expectedanswernote>
      </expected>
    </qtest>
    <qtest>
      <testcase>2</testcase>
      <testinput>
        <name>ans1</name>
        <value>first(mcq_correct(TAnsA2))</value>
      </testinput>
      <testinput>
        <name>ans2</name>
        <value>TAnsA11W1</value>
      </testinput>
      <testinput>
        <name>ans3</name>
        <value>TAnsA12W1</value>
      </testinput>
      <testinput>
        <name>ans4</name>
        <value>TAnsBW1</value>
      </testinput>
      <expected>
        <name>prt1</name>
        <expectedscore>0.0000000</expectedscore>
        <expectedpenalty></expectedpenalty>
        <expectedanswernote>prt1-3-F</expectedanswernote>
      </expected>
      <expected>
        <name>prt2</name>
        <expectedscore>0.0000000</expectedscore>
        <expectedpenalty></expectedpenalty>
        <expectedanswernote>prt4-1-F</expectedanswernote>
      </expected>
      <expected>
        <name>prt3</name>
        <expectedscore>0.0000000</expectedscore>
        <expectedpenalty></expectedpenalty>
        <expectedanswernote>prt3-1-F</expectedanswernote>
      </expected>
    </qtest>
    <qtest>
      <testcase>3</testcase>
      <testinput>
        <name>ans1</name>
        <value>first(mcq_incorrect(TAnsA2))</value>
      </testinput>
      <testinput>
        <name>ans2</name>
        <value>TAnsA11W1</value>
      </testinput>
      <testinput>
        <name>ans3</name>
        <value>TAnsA12W1</value>
      </testinput>
      <testinput>
        <name>ans4</name>
        <value>TAnsBW2</value>
      </testinput>
      <expected>
        <name>prt1</name>
        <expectedscore>0.5000000</expectedscore>
        <expectedpenalty></expectedpenalty>
        <expectedanswernote>prt1-3-T</expectedanswernote>
      </expected>
      <expected>
        <name>prt2</name>
        <expectedscore>0.0000000</expectedscore>
        <expectedpenalty></expectedpenalty>
        <expectedanswernote>prt4-1-F</expectedanswernote>
      </expected>
      <expected>
        <name>prt3</name>
        <expectedscore>0.0000000</expectedscore>
        <expectedpenalty></expectedpenalty>
        <expectedanswernote>prt3-2-F</expectedanswernote>
      </expected>
    </qtest>
    <qtest>
      <testcase>4</testcase>
      <testinput>
        <name>ans1</name>
        <value>first(mcq_incorrect(TAnsA2))</value>
      </testinput>
      <testinput>
        <name>ans2</name>
        <value>TAnsA11</value>
      </testinput>
      <testinput>
        <name>ans3</name>
        <value>TAnsA12</value>
      </testinput>
      <testinput>
        <name>ans4</name>
        <value></value>
      </testinput>
      <expected>
        <name>prt1</name>
        <expectedscore>0.0000000</expectedscore>
        <expectedpenalty></expectedpenalty>
        <expectedanswernote>prt1-4-F</expectedanswernote>
      </expected>
      <expected>
        <name>prt2</name>
        <expectedscore>1.0000000</expectedscore>
        <expectedpenalty></expectedpenalty>
        <expectedanswernote>prt4-1-T</expectedanswernote>
      </expected>
      <expected>
        <name>prt3</name>
        <expectedscore></expectedscore>
        <expectedpenalty></expectedpenalty>
        <expectedanswernote>NULL</expectedanswernote>
      </expected>
    </qtest>
    <tags>
      <tag><text>dreieck</text>
</tag>
      <tag><text>Ebene</text>
</tag>
      <tag><text>Polygon</text>
</tag>
      <tag><text>Punkt</text>
</tag>
      <tag><text>Lagebeziehung</text>
</tag>
    </tags>
  </question>

</quiz>