<?xml version="1.0" encoding="UTF-8"?>
<quiz>
<!-- question: 9952856  -->
  <question type="stack">
    <name>
      <text>Brüche addieren (mit Fragevarianten)</text>
    </name>
    <questiontext format="html">
      <text><![CDATA[<h4>Version der Aufgabe mit Fragevarianten</h4>
<p>Bitte führen Sie die folgende Addition von Brüchen durch: \( {@b1@} + {@b2@} \)</p>
<p>Antwort: [[input:ans1]] [[validation:ans1]]</p>]]></text>
    </questiontext>
    <generalfeedback format="html">
      <text></text>
    </generalfeedback>
    <defaultgrade>8.0000000</defaultgrade>
    <penalty>0.1000000</penalty>
    <hidden>0</hidden>
    <idnumber></idnumber>
    <stackversion>
      <text>2026062900</text>
    </stackversion>
    <questionvariables>
      <text>/*
Die Aufgabe „Brüche addieren“ von Michael Kallweit und Jonas Lache, Fakultät für Mathematik, Ruhr-Universität Bochum, ist lizenziert unter einer CC BY-SA 4.0 International Lizenz (https://creativecommons.org/licenses/by-sa/4.0/). Die vorliegende Version wurde von Jonas Lache, Team E-Learning@Hochschule Ruhr West, überarbeitet und unter dem Titel „Brüche addieren (mit Fragevarianten)“ wiederveröffentlicht (letzte Änderung: 01.10.2026).
*/

z1: 1;
n1: rand(5)+2;
/* n1: rand_with_step(2,6,1); */
b1: z1/n1;

z2: 1;
n2: rand_with_prohib(2,6,[n1]);
b2: z2/n2;

/* rand([1,2,3]); */

ta1: b1+b2;</text>
    </questionvariables>
    <specificfeedback format="html">
      <text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
    </specificfeedback>
    <questionnote format="html">
      <text><![CDATA[<p>{@{b1,b2}@}</p>]]></text>
    </questionnote>
    <questiondescription format="html">
      <text></text>
    </questiondescription>
    <questionsimplify>1</questionsimplify>
    <assumepositive>0</assumepositive>
    <assumereal>0</assumereal>
    <prtcorrect format="html">
      <text><![CDATA[<p>Richtige Antwort, gut gemacht!</p>]]></text>
    </prtcorrect>
    <prtpartiallycorrect format="html">
      <text><![CDATA[<p>Ihre Antwort ist teilweise korrekt.</p>]]></text>
    </prtpartiallycorrect>
    <prtincorrect format="html">
      <text><![CDATA[<p>Falsche Antwort.</p>]]></text>
    </prtincorrect>
    <decimals>.</decimals>
    <scientificnotation>*10</scientificnotation>
    <multiplicationsign>dot</multiplicationsign>
    <sqrtsign>1</sqrtsign>
    <complexno>i</complexno>
    <inversetrig>cos-1</inversetrig>
    <logicsymbol>lang</logicsymbol>
    <matrixparens>[</matrixparens>
    <isbroken>0</isbroken>
    <variantsselectionseed></variantsselectionseed>
    <input>
      <name>ans1</name>
      <type>algebraic</type>
      <tans>ta1</tans>
      <boxsize>15</boxsize>
      <strictsyntax>1</strictsyntax>
      <insertstars>0</insertstars>
      <syntaxhint></syntaxhint>
      <syntaxattribute>0</syntaxattribute>
      <forbidwords></forbidwords>
      <allowwords></allowwords>
      <forbidfloat>1</forbidfloat>
      <requirelowestterms>0</requirelowestterms>
      <checkanswertype>0</checkanswertype>
      <mustverify>1</mustverify>
      <showvalidation>1</showvalidation>
      <options></options>
    </input>
    <prt>
      <name>prt1</name>
      <value>1.0000000</value>
      <autosimplify>0</autosimplify>
      <feedbackstyle>1</feedbackstyle>
      <feedbackvariables>
        <text>taf: (z1+z2)/(n1+n2);</text>
      </feedbackvariables>
      <node>
        <name>0</name>
        <description></description>
        <answertest>CasEqual</answertest>
        <sans>ans1</sans>
        <tans>ta1</tans>
        <testoptions></testoptions>
        <quiet>0</quiet>
        <truescoremode>=</truescoremode>
        <truescore>1</truescore>
        <truepenalty></truepenalty>
        <truenextnode>-1</truenextnode>
        <trueanswernote>prt1-1-T</trueanswernote>
        <truefeedback format="html">
          <text><![CDATA[<p>Super, Ihre Antwort ist richtig! </p>]]></text>
        </truefeedback>
        <falsescoremode>=</falsescoremode>
        <falsescore>0</falsescore>
        <falsepenalty></falsepenalty>
        <falsenextnode>1</falsenextnode>
        <falseanswernote>prt1-1-F</falseanswernote>
        <falsefeedback format="html">
          <text><![CDATA[<p>Leider ist Ihre Antwort {@ans1@} falsch.</p>]]></text>
        </falsefeedback>
      </node>
      <node>
        <name>1</name>
        <description></description>
        <answertest>AlgEquiv</answertest>
        <sans>ans1</sans>
        <tans>taf</tans>
        <testoptions></testoptions>
        <quiet>0</quiet>
        <truescoremode>+</truescoremode>
        <truescore>0.5</truescore>
        <truepenalty></truepenalty>
        <truenextnode>-1</truenextnode>
        <trueanswernote>prt1-2-T</trueanswernote>
        <truefeedback format="html">
          <text><![CDATA[<p>Kann es sein, dass Sie die Zähler und Nenner der beiden Brüche jeweils addiert haben? Dieser Ansatz ist leider falsch.</p>]]></text>
        </truefeedback>
        <falsescoremode>-</falsescoremode>
        <falsescore>0</falsescore>
        <falsepenalty></falsepenalty>
        <falsenextnode>-1</falsenextnode>
        <falseanswernote>prt1-2-F</falseanswernote>
        <falsefeedback format="html">
          <text></text>
        </falsefeedback>
      </node>
    </prt>
    <deployedseed>998758660</deployedseed>
    <deployedseed>1840939679</deployedseed>
    <deployedseed>936923022</deployedseed>
    <deployedseed>97948996</deployedseed>
    <deployedseed>777361719</deployedseed>
    <deployedseed>218860826</deployedseed>
    <deployedseed>546681988</deployedseed>
    <deployedseed>602148506</deployedseed>
    <deployedseed>993430186</deployedseed>
    <deployedseed>1750343473</deployedseed>
    <qtest>
      <testcase>1</testcase>
      <description>Testfall, der annimmt, dass die Eingabe der Trainer/innen die volle Punktezahl erreicht.</description>
      <testinput>
        <name>ans1</name>
        <value>ta1</value>
      </testinput>
      <expected>
        <name>prt1</name>
        <expectedscore>1.0000000</expectedscore>
        <expectedpenalty>0.0000000</expectedpenalty>
        <expectedanswernote>( prt1-1-T ]</expectedanswernote>
      </expected>
    </qtest>
  </question>

<!-- question: 9952857  -->
  <question type="stack">
    <name>
      <text>Brüche addieren (ohne Fragevarianten)</text>
    </name>
    <questiontext format="html">
      <text><![CDATA[<h4>Version der Aufgabe ohne Fragevarianten</h4>
<p>Bitte führen Sie die folgende Addition von Brüchen durch: \( {@b1@} + {@b2@} \)</p>
<p>Antwort: [[input:ans1]] [[validation:ans1]]</p>]]></text>
    </questiontext>
    <generalfeedback format="html">
      <text></text>
    </generalfeedback>
    <defaultgrade>8.0000000</defaultgrade>
    <penalty>0.1000000</penalty>
    <hidden>0</hidden>
    <idnumber></idnumber>
    <stackversion>
      <text>2026062900</text>
    </stackversion>
    <questionvariables>
      <text>/*
Die Aufgabe „Brüche addieren“ von Michael Kallweit und Jonas Lache, Fakultät für Mathematik, Ruhr-Universität Bochum, ist lizenziert unter einer CC BY-SA 4.0 International Lizenz (https://creativecommons.org/licenses/by-sa/4.0/). Die vorliegende Version wurde von Jonas Lache, Team E-Learning@Hochschule Ruhr West, überarbeitet und unter dem Titel „Brüche addieren (ohne Fragevarianten)“ wiederveröffentlicht (letzte Änderung: 01.10.2026).
*/

z1: 1;
n1: rand(5)+2;
/* n1: rand_with_step(2,6,1); */
b1: z1/n1;

z2: 1;
n2: rand_with_prohib(2,6,[n1]);
b2: z2/n2;

/* rand([1,2,3]); */

ta1: b1+b2;</text>
    </questionvariables>
    <specificfeedback format="html">
      <text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
    </specificfeedback>
    <questionnote format="html">
      <text><![CDATA[<p>Bitte führen Sie die folgende Addition von Brüchen durch: \( {@b1@} + {@b2@} \)</p>]]></text>
    </questionnote>
    <questiondescription format="html">
      <text></text>
    </questiondescription>
    <questionsimplify>1</questionsimplify>
    <assumepositive>0</assumepositive>
    <assumereal>0</assumereal>
    <prtcorrect format="html">
      <text><![CDATA[<p>Richtige Antwort, gut gemacht!</p>]]></text>
    </prtcorrect>
    <prtpartiallycorrect format="html">
      <text><![CDATA[<p>Ihre Antwort ist teilweise korrekt.</p>]]></text>
    </prtpartiallycorrect>
    <prtincorrect format="html">
      <text><![CDATA[<p>Falsche Antwort.</p>]]></text>
    </prtincorrect>
    <decimals>.</decimals>
    <scientificnotation>*10</scientificnotation>
    <multiplicationsign>dot</multiplicationsign>
    <sqrtsign>1</sqrtsign>
    <complexno>i</complexno>
    <inversetrig>cos-1</inversetrig>
    <logicsymbol>lang</logicsymbol>
    <matrixparens>[</matrixparens>
    <isbroken>0</isbroken>
    <variantsselectionseed></variantsselectionseed>
    <input>
      <name>ans1</name>
      <type>algebraic</type>
      <tans>ta1</tans>
      <boxsize>15</boxsize>
      <strictsyntax>1</strictsyntax>
      <insertstars>0</insertstars>
      <syntaxhint></syntaxhint>
      <syntaxattribute>0</syntaxattribute>
      <forbidwords></forbidwords>
      <allowwords></allowwords>
      <forbidfloat>1</forbidfloat>
      <requirelowestterms>0</requirelowestterms>
      <checkanswertype>0</checkanswertype>
      <mustverify>1</mustverify>
      <showvalidation>1</showvalidation>
      <options></options>
    </input>
    <prt>
      <name>prt1</name>
      <value>1.0000000</value>
      <autosimplify>0</autosimplify>
      <feedbackstyle>1</feedbackstyle>
      <feedbackvariables>
        <text>taf: (z1+z2)/(n1+n2);</text>
      </feedbackvariables>
      <node>
        <name>0</name>
        <description></description>
        <answertest>CasEqual</answertest>
        <sans>ans1</sans>
        <tans>ta1</tans>
        <testoptions></testoptions>
        <quiet>0</quiet>
        <truescoremode>=</truescoremode>
        <truescore>1</truescore>
        <truepenalty></truepenalty>
        <truenextnode>-1</truenextnode>
        <trueanswernote>prt1-1-T</trueanswernote>
        <truefeedback format="html">
          <text><![CDATA[<p>Super, Ihre Antwort ist richtig! </p>]]></text>
        </truefeedback>
        <falsescoremode>=</falsescoremode>
        <falsescore>0</falsescore>
        <falsepenalty></falsepenalty>
        <falsenextnode>1</falsenextnode>
        <falseanswernote>prt1-1-F</falseanswernote>
        <falsefeedback format="html">
          <text><![CDATA[<p>Leider ist Ihre Antwort {@ans1@} falsch.</p>]]></text>
        </falsefeedback>
      </node>
      <node>
        <name>1</name>
        <description></description>
        <answertest>AlgEquiv</answertest>
        <sans>ans1</sans>
        <tans>taf</tans>
        <testoptions></testoptions>
        <quiet>0</quiet>
        <truescoremode>+</truescoremode>
        <truescore>0.5</truescore>
        <truepenalty></truepenalty>
        <truenextnode>-1</truenextnode>
        <trueanswernote>prt1-2-T</trueanswernote>
        <truefeedback format="html">
          <text><![CDATA[<p>Kann es sein, dass Sie die Zähler und Nenner der beiden Brüche jeweils addiert haben? Dieser Ansatz ist leider falsch.</p>]]></text>
        </truefeedback>
        <falsescoremode>-</falsescoremode>
        <falsescore>0</falsescore>
        <falsepenalty></falsepenalty>
        <falsenextnode>-1</falsenextnode>
        <falseanswernote>prt1-2-F</falseanswernote>
        <falsefeedback format="html">
          <text></text>
        </falsefeedback>
      </node>
    </prt>
  </question>

<!-- question: 9952858  -->
  <question type="stack">
    <name>
      <text>Umkehraufgabe Nullstellen</text>
    </name>
    <questiontext format="html">
      <text><![CDATA[<p>Bitte geben Sie ein Polynom \(q(x)\) an, das Nullstellen bei \(x_1={@x1@}\) und \(x_2={@x2@}\) hat.</p>
<p>Antwort: \(q(x)=\) [[input:ans1]] [[validation:ans1]]</p>
<p>[[feedback:prt1]]</p>]]></text>
    </questiontext>
    <generalfeedback format="html">
      <text></text>
    </generalfeedback>
    <defaultgrade>1.0000000</defaultgrade>
    <penalty>0.1000000</penalty>
    <hidden>0</hidden>
    <idnumber></idnumber>
    <stackversion>
      <text>2026062900</text>
    </stackversion>
    <questionvariables>
      <text>/*
Die Aufgabe „Herkömmliche Aufgabe und Umkehraufgabe (Nullstellen)“, Team E-Learning@Hochschule Ruhr West von Jonas Lache ist lizenziert unter einer CC BY-SA 4.0 International Lizenz (https://creativecommons.org/licenses/by-sa/4.0/). Die vorliegende Version wurde von Jonas Lache, Team E-Learning@Hochschule Ruhr West, überarbeitet und unter dem Titel „Umkehraufgabe Nullstellen“ wiederveröffentlicht (letzte Änderung: 01.10.2026).
*/

/* Nullstellen zufällig generiert, dann *eine* mögliche Lösung daraus konstruiert */
x1: rand_with_step(-1,5,1);
x2: rand_with_prohib(-5,5,[0,nst1,nst2,x1]);
ta1: expand((x-x1)*(x-x2));</text>
    </questionvariables>
    <specificfeedback format="html">
      <text></text>
    </specificfeedback>
    <questionnote format="html">
      <text><![CDATA[<p>\(x_1={@x1@}\); \(x_2={@x2@}\)</p>]]></text>
    </questionnote>
    <questiondescription format="html">
      <text></text>
    </questiondescription>
    <questionsimplify>1</questionsimplify>
    <assumepositive>0</assumepositive>
    <assumereal>0</assumereal>
    <prtcorrect format="html">
      <text><![CDATA[<p>Richtige Antwort, gut gemacht!</p>]]></text>
    </prtcorrect>
    <prtpartiallycorrect format="html">
      <text><![CDATA[<p>Ihre Antwort ist teilweise korrekt.</p>]]></text>
    </prtpartiallycorrect>
    <prtincorrect format="html">
      <text><![CDATA[<p>Falsche Antwort.</p>]]></text>
    </prtincorrect>
    <decimals>.</decimals>
    <scientificnotation>*10</scientificnotation>
    <multiplicationsign>dot</multiplicationsign>
    <sqrtsign>1</sqrtsign>
    <complexno>i</complexno>
    <inversetrig>cos-1</inversetrig>
    <logicsymbol>lang</logicsymbol>
    <matrixparens>[</matrixparens>
    <isbroken>0</isbroken>
    <variantsselectionseed></variantsselectionseed>
    <input>
      <name>ans1</name>
      <type>algebraic</type>
      <tans>ta1</tans>
      <boxsize>15</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>1</mustverify>
      <showvalidation>1</showvalidation>
      <options></options>
    </input>
    <prt>
      <name>prt1</name>
      <value>1.0000000</value>
      <autosimplify>1</autosimplify>
      <feedbackstyle>1</feedbackstyle>
      <feedbackvariables>
        <text>/* Enthält die Antwort nur die Variable x oder aber gar keine Variable? */
variablen: is(length(setdifference(setify(listofvars(ans1)), set(x)))=0);</text>
      </feedbackvariables>
      <node>
        <name>0</name>
        <description>Enthält \(q\) nur die Variable \(x\) oder gar keine?</description>
        <answertest>AlgEquiv</answertest>
        <sans>variablen</sans>
        <tans>true</tans>
        <testoptions></testoptions>
        <quiet>0</quiet>
        <truescoremode>=</truescoremode>
        <truescore>0</truescore>
        <truepenalty></truepenalty>
        <truenextnode>1</truenextnode>
        <trueanswernote>prt1-1-T</trueanswernote>
        <truefeedback format="html">
          <text></text>
        </truefeedback>
        <falsescoremode>=</falsescoremode>
        <falsescore>0</falsescore>
        <falsepenalty></falsepenalty>
        <falsenextnode>-1</falsenextnode>
        <falseanswernote>prt1-1-F</falseanswernote>
        <falsefeedback format="html">
          <text><![CDATA[<p>Ihre Antwort sollte ausschließlich die Variable \(x\) enthalten, sie enthält aber folgende Variablen: {@sequenceify(listofvars(ans1))@}. Bitte überprüfen Sie Ihre Antwort.</p>]]></text>
        </falsefeedback>
      </node>
      <node>
        <name>1</name>
        <description>Ist \(q\) ein Polynom?</description>
        <answertest>AlgEquiv</answertest>
        <sans>polynomialp(ans1,[x])</sans>
        <tans>true</tans>
        <testoptions></testoptions>
        <quiet>0</quiet>
        <truescoremode>+</truescoremode>
        <truescore>0</truescore>
        <truepenalty></truepenalty>
        <truenextnode>2</truenextnode>
        <trueanswernote>prt1-2-T</trueanswernote>
        <truefeedback format="html">
          <text></text>
        </truefeedback>
        <falsescoremode>-</falsescoremode>
        <falsescore>0</falsescore>
        <falsepenalty></falsepenalty>
        <falsenextnode>-1</falsenextnode>
        <falseanswernote>prt1-2-F</falseanswernote>
        <falsefeedback format="html">
          <text><![CDATA[<p>Ihre Antwort ist kein Polynom. Bitte geben Sie einen Ausdruck der Form \(a_n x^n+a_{n-1}x^{n-1}+\dots+a_1x+a_0\) (wobei \(a_i\in\mathbb{R}\) und \(i\in\{0,1,\dots,n\}\)).</p>]]></text>
        </falsefeedback>
      </node>
      <node>
        <name>2</name>
        <description>Ist \(x_1\) eine Nullstelle von \(q\)?</description>
        <answertest>AlgEquiv</answertest>
        <sans>subst(x1,x,ans1)</sans>
        <tans>0</tans>
        <testoptions></testoptions>
        <quiet>0</quiet>
        <truescoremode>+</truescoremode>
        <truescore>0.5</truescore>
        <truepenalty></truepenalty>
        <truenextnode>3</truenextnode>
        <trueanswernote>prt1-3-T</trueanswernote>
        <truefeedback format="html">
          <text><![CDATA[<p>Prima! \(x_1={@x1@}\) ist eine Nullstelle Ihrer Funktion.</p>]]></text>
        </truefeedback>
        <falsescoremode>-</falsescoremode>
        <falsescore>0</falsescore>
        <falsepenalty></falsepenalty>
        <falsenextnode>3</falsenextnode>
        <falseanswernote>prt1-3-F</falseanswernote>
        <falsefeedback format="html">
          <text><![CDATA[<p>\(x_1={@x1@}\) ist leider keine Nullstelle Ihrer Funktion. Setzt man {@x1@} in Ihre Funktion ein, kommt \(q(x_1)={@subst(x1,x,ans1)@}\) heraus. Es sollte aber 0 heraus kommen.</p>]]></text>
        </falsefeedback>
      </node>
      <node>
        <name>3</name>
        <description>Ist \(x_2\) eine Nullstelle von \(q\)?</description>
        <answertest>AlgEquiv</answertest>
        <sans>subst(x2,x,ans1)</sans>
        <tans>0</tans>
        <testoptions></testoptions>
        <quiet>0</quiet>
        <truescoremode>+</truescoremode>
        <truescore>0.5</truescore>
        <truepenalty></truepenalty>
        <truenextnode>4</truenextnode>
        <trueanswernote>prt1-4-T</trueanswernote>
        <truefeedback format="html">
          <text><![CDATA[<p>Prima! \(x_2={@x2@}\) ist eine Nullstelle Ihrer Funktion.</p>]]></text>
        </truefeedback>
        <falsescoremode>-</falsescoremode>
        <falsescore>0</falsescore>
        <falsepenalty></falsepenalty>
        <falsenextnode>4</falsenextnode>
        <falseanswernote>prt1-4-F</falseanswernote>
        <falsefeedback format="html">
          <text><![CDATA[<p>\(x_2={@x2@}\) ist leider keine Nullstelle Ihrer Funktion. Setzt man {@x2@} in Ihre Funktion ein, kommt \(q(x_2)={@subst(x2,x,ans1)@}\) heraus. Es sollte aber 0 heraus kommen.</p>]]></text>
        </falsefeedback>
      </node>
      <node>
        <name>4</name>
        <description>Sind \(x_1\) und \(x_2\) Nullstellen von \(q\)?</description>
        <answertest>AlgEquiv</answertest>
        <sans>[subst(x1,x,ans1),subst(x2,x,ans1)]</sans>
        <tans>[0,0]</tans>
        <testoptions></testoptions>
        <quiet>1</quiet>
        <truescoremode>+</truescoremode>
        <truescore>0</truescore>
        <truepenalty></truepenalty>
        <truenextnode>-1</truenextnode>
        <trueanswernote>prt1-5-T</trueanswernote>
        <truefeedback format="html">
          <text><![CDATA[<hr>
<p>Ihre Antwort ist somit richtig. Sie können Ihre Funktion in der folgenden Grafik sehen. Die Nullstellen bei \(x_1={@x1@}\) und \(x_2={@x2@}\) sind markiert.</p>
[[jsxgraph]]
  const board = JXG.JSXGraph.initBoard(divid, {
    boundingbox: [-6, 5,6, -5],
    axis: true,
    showCopyright: false
  });
  const nst1 = {#float(x1)#};
  const nst2 = {#float(x2)#};
  const f = board.jc.snippet('{#ans1#}', true, 'x', true);
  const f_graph = board.create('functiongraph', [f]);
  const nst1_pt = board.create('point', [nst1, f(nst1)],{
    color:"green",
    fixed:true,
    withLabel:false,
    highlight:false
});
  const nst2_pt = board.create('point', [nst2, f(nst2)],{
    color:"green",
    fixed:true,
    withLabel:false,
    highlight:false
});

[[/jsxgraph]]]]></text>
        </truefeedback>
        <falsescoremode>-</falsescoremode>
        <falsescore>0</falsescore>
        <falsepenalty></falsepenalty>
        <falsenextnode>-1</falsenextnode>
        <falseanswernote>prt1-5-F</falseanswernote>
        <falsefeedback format="html">
          <text></text>
        </falsefeedback>
      </node>
    </prt>
  </question>

</quiz>