Subtracting Unlike Fractions - Level 1
Loading the math board and drawing, please wait…
In collections
Subtrahieren von ungleichnamigen Brüchen
This example demonstrates a randomly generated exercise for subtracting fractions with unlike denominators (Level 1). Core math concepts include fraction subtraction, finding the least common multiple, and equivalent fractions. The construction uses GeoGebra commands such as Sequence, Zip, Shuffle, If, Element, Join, Textfield, Append, Remove, IsInteger, LaTeX, Corner, and LCM, together with random number objects (randomNosForValue1, etc.), input fields (inputa, inputb, …), and hint objects (showhint1, showhint4) to create dynamic questions and automatic answer checking. It is suitable for grades 5‑6 mathematics instruction, self‑practice, or interactive classroom activities.
GeoGebra Commands & Parameters
Sequence(Sequence[{j, m}, j, 1, m - 1], m, 2, 10) → l1Transpose(Join[l1]) → m1Zip(m / n, m, m1(1), n, m1(2)) → l2Length(l2) → numAllValuesSequence(Random[10, numAllValues - 10], m, 1, 110) → randomNosCutOff, {11, 14, 12, 16, 14, 25, 28, 35, 13, 28, 28, 32, 13, 22, 27, 16, 19, 19, 19, 10, 34, 19, 16, 18, 31, 22, 10, 17, 32, 19, 14, 24, 12, 10, 16, 33, 32, 29, 10, 21, 16, 24, 20, 27, 34, 19, 18, 13, 26, 19, 32, 10, 19, 13, 14, 16, 31, 13, 24, 19, 20, 29, 18, 11, 11, 29, 35, 13, 30, 34, 17, 19, 29, 17, 34, 16, 12, 11, 22, 20, 17, 19, 13, 28, 14, 20, 13, 30, 16, 13, 26, 25, 15, 30, 28, 32, 28, 33, 28, 10, 31, 16, 33, 15, 21, 33, 22, 16, 17, 14}Zip(Random[m + 1, numAllValues], m, randomNosCutOff) → randomNosForValue1Zip(Random[1, m - 1], m, randomNosCutOff) → randomNosForValue2Transpose(Sort[Transpose[m1], l2]) → m2Shuffle(Sequence[Random[2, 6], i, 1, 100]) → randomNosForG3, {5, 6, 4, 3, 5, 5, 2, 4, 6, 4, 3, 3, 5, 4, 5, 6, 3, 5, 4, 5, 4, 2, 5, 6, 3, 2, 6, 2, 5, 3, 6, 3, 2, 6, 6, 6, 3, 3, 2, 5, 3, 5, 5, 2, 4, 5, 2, 5, 5, 6, 5, 2, 3, 2, 2, 3, 6, 4, 2, 6, 3, 3, 2, 2, 6, 4, 5, 4, 5, 6, 6, 4, 3, 5, 2, 4, 5, 3, 3, 5, 5, 2, 2, 3, 2, 4, 3, 3, 4, 3, 5, 6, 6, 5, 2, 2, 6, 6, 6, 6}Zip(Random[1, g - 1], g, randomNosForG3) → randomNosForH3Shuffle(Sequence[Random[2, 6], i, 1, 100]) → randomNosForG4, {2, 4, 3, 6, 4, 6, 6, 5, 3, 5, 4, 6, 2, 3, 6, 6, 2, 6, 3, 6, 6, 2, 6, 6, 3, 6, 4, 6, 5, 6, 6, 4, 5, 3, 3, 2, 6, 6, 2, 4, 3, 4, 3, 3, 3, 6, 6, 6, 6, 4, 5, 3, 6, 3, 2, 5, 3, 4, 2, 6, 2, 2, 6, 2, 2, 4, 5, 5, 5, 4, 4, 6, 2, 6, 5, 2, 5, 3, 2, 6, 6, 2, 5, 4, 3, 2, 6, 3, 3, 6, 5, 2, 4, 3, 5, 3, 3, 3, 2, 3}Zip(Random[1, g - 1], g, randomNosForG4) → randomNosForH4Shuffle(Sequence[Random[2, 10], i, 1, 100]) → randomNosForB1, {7, 2, 6, 3, 9, 4, 8, 7, 4, 7, 6, 5, 4, 8, 8, 9, 8, 2, 4, 8, 3, 3, 10, 5, 3, 3, 5, 4, 7, 5, 5, 10, 10, 9, 4, 7, 5, 4, 10, 10, 7, 9, 9, 9, 3, 3, 4, 2, 10, 10, 4, 2, 6, 8, 10, 3, 3, 10, 7, 7, 2, 4, 4, 3, 3, 10, 2, 5, 2, 4, 6, 8, 9, 6, 7, 2, 7, 7, 5, 9, 2, 6, 8, 7, 9, 5, 7, 8, 5, 5, 7, 8, 9, 4, 9, 2, 3, 6, 7, 5}Zip(RandomElement[Sequence[2, 10] \ {b}], b, randomNosForB1) → randomNosForD1Zip(Random[b / d, b - 1], b, randomNosForB1, d, randomNosForD1) → randomNosForA1Zip(Random[1, (a / b * d)], a, randomNosForA1, b, randomNosForB1, d, randomNosForD1) → randomNosForC1Shuffle(Sequence[Random[2, 10], i, 1, 100]) → randomNosForB2, {6, 7, 9, 6, 8, 6, 4, 10, 2, 7, 10, 2, 9, 2, 6, 6, 8, 4, 7, 6, 10, 7, 9, 3, 3, 7, 9, 8, 6, 7, 7, 4, 2, 8, 3, 10, 2, 6, 9, 10, 5, 3, 5, 7, 6, 7, 2, 10, 2, 7, 8, 10, 2, 5, 7, 2, 7, 3, 7, 5, 9, 6, 2, 9, 10, 5, 3, 3, 7, 10, 10, 10, 4, 5, 2, 3, 9, 2, 7, 7, 4, 5, 5, 8, 6, 7, 8, 7, 7, 7, 5, 10, 4, 9, 6, 9, 7, 6, 2, 10}Zip(RandomElement[Sequence[5, 10] \ {b}], b, randomNosForB2) → randomNosForD2Zip(Random[b + 1, (2 * b)], b, randomNosForB2) → randomNosForA2If(same, m2(2, value2) + 1, m2(2, value2)) → d4If(same, m2(2, value2) + 1, m2(2, value2)) → d3If(same, m2(2, value2) + 1, m2(2, value2)) → d1Element(randomNosForG3, Mod[questionCount, 100] + 1) → g3Element(randomNosForH3, Mod[questionCount, 100] + 1) → h3Element(randomNosForG4, Mod[questionCount, 100] + 1) → g4Element(randomNosForH4, Mod[questionCount, 100] + 1) → h4Element(randomNosForC1, Mod[questionCount, 100] + 1) → c2Element(randomNosForD2, Mod[questionCount, 100] + 1) → d2Element(randomNosForA2, Mod[questionCount, 100] + 1) → a2Element(randomNosForB2, Mod[questionCount, 100] + 1) → b2Join(Sequence[Shuffle[{1, 2, 3, 4}], m, 1, 30]) → randomNosForTypElement({d1, d2, d3, d4}, typ) → numDElement({b1, b2, b3, b4}, typ) → numBIf(same ∧ numB > numD ∧ Element[{a1, a2, a3, a4}, typ] ≠ numB - 1, Element[{a1, a2, a3, a4}, typ] + 1, Element[{a1, a2, a3, a4}, typ]) → numAaltIf(same, numAalt, Element[{a1, a2, a3, a4}, typ]) → numAIf(same ∧ numB < numD ∧ Element[{c1, c2, c3, c4}, typ] ≠ 1, Element[{c1, c2, c3, c4}, typ] - 1, Element[{c1, c2, c3, c4}, typ]) → numCaltIf(same, numCalt, Element[{c1, c2, c3, c4}, typ]) → numCElement({g1, g2, g3, g4}, typ) → numGIf(Defined[inputg] ∨ Defined[inputa] ∨ Defined[inputb], If[gemischt1 ∧ Defined[inputg], inputg, 0] + inputa / inputb ≟ If[gemischt1, numG, 0] + numA / numB, true) → correctABElement({h1, h2, h3, h4}, typ) → numHIf(sol1raw < sol2raw, sol1raw / GCD[sol1raw, sol2raw], (sol1raw - (sol2raw * floor(sol1raw / sol2raw))) / GCD[sol1raw, sol2raw]) → sol1If(sol1raw < sol2raw, 0, floor(sol1raw / sol2raw)) → sol0If(Defined[inputsol0], inputsol0 ≟ sol0 ∧ inputsol1 / inputsol2 ≟ sol1 / sol2, inputsol1 / inputsol2 ≟ sol1raw / sol2raw) → correctSolIf(Defined[inputh] ∨ Defined[inputc] ∨ Defined[inputd], If[gemischt2 ∧ Defined[inputh], inputh, 0] + inputc / inputd ≟ If[gemischt2, numH, 0] + numC / numD, true) → correctCDZip(RandomElement[Sequence[2, 10] \ Join[Sequence[(k * PrimeFactors[b]), k, 1, 10]]], b, randomNosForB4) → randomNosForD4Zip(Random[1, (a / b * d)], a, randomNosForA4, b, randomNosForB4, d, randomNosForD4) → randomNosForC4Textfield(inputa) → EingabefeldaTextfield(inputb) → EingabefeldbShuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForY, {6, 2, 4, 0, 8, 1, 5, 0, 3, 2, 0, 9, 8, 8, 7, 5, 4, 3, 0, 7, 8, 9, 1, 10, 1, 5, 1, 10, 2, 7, 0, 4, 7, 5, 1, 0, 8, 3, 1, 0, 9, 2, 0, 4, 6, 6, 10, 2, 8, 8, 4, 1, 0, 2, 8, 6, 4, 9, 0, 10, 7, 6, 8, 8, 9, 2, 0, 4, 0, 10, 2, 6, 8, 2, 4, 8, 7, 8, 3, 7, 2, 5, 9, 3, 10, 4, 9, 1, 4, 0, 2, 1, 9, 1, 7, 1, 0, 8, 4, 0}Append(true, Sequence[If[randomNosForB1(i) ≟ randomNosForB1(i - 1), false, true], i, 2, 100]) → stayXAppend(true, Sequence[If[randomNosForY(i) ≟ randomNosForY(i - 1), false, true], i, 2, 100]) → stayYRemove(Sequence[If[stayX(i), randomNosForB1(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForXwithoutRepeatRemove(Sequence[If[stayY(i), randomNosForY(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForYwithoutRepeatElement(randomNosForXwithoutRepeat, Mod[questionCount, Length[randomNosForXwithoutRepeat]] + 1) → numXwithoutRepeatElement(randomNosForYwithoutRepeat, Mod[questionCount, Length[randomNosForYwithoutRepeat]] + 1) → numYwithoutRepeatZip(Random[1, d - 1], d, randomNosForD2) → randomNosForC2IsInteger(sol1 / sol2) → checkWholeNumLaTeX(checkWholeNum, true, true) → Text3Corner(TextAngabe, 3) → PTextfield(inputc) → EingabefeldcTextfield(inputd) → EingabefelddTextfield(inputg) → EingabefeldgTextfield(inputh) → EingabefeldhTextfield(inputsol0) → Eingabefeldsol0Textfield(inputsol1) → Eingabefeldsol1Textfield(inputsol2) → Eingabefeldsol2LCM(numB, numD) → vielfachesLCM(numB, numD) → sol2testLCM(numB, numD) → inputnennererweitertLCM(numB, numD) → a
AI Drawing Prompt Reference
Create an interactive unlike-denominator fraction subtraction practice for grades 5–6. Randomly generate two fractions with different denominators, display numerator and denominator input boxes, optional whole-number boxes, and answer input boxes. Use the generated numerators, denominators, least common multiples, and equivalent-fraction relationships to check answers automatically and show correct or incorrect feedback. Include hint controls and adjustable practice parameters or sliders, with a clear classroom-friendly layout.
The prompt above was compiled from the original drawing commands and is for reference only.