Subtracting Unlike Fractions - Level 1

Subtracting Unlike Fractions - Level 1
Loading the math board and drawing, please wait…
2023-01-30 20:37
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

  1. Sequence(Sequence[{j, m}, j, 1, m - 1], m, 2, 10) → l1
  2. Transpose(Join[l1]) → m1
  3. Zip(m / n, m, m1(1), n, m1(2)) → l2
  4. Length(l2) → numAllValues
  5. Sequence(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}
  6. Zip(Random[m + 1, numAllValues], m, randomNosCutOff) → randomNosForValue1
  7. Zip(Random[1, m - 1], m, randomNosCutOff) → randomNosForValue2
  8. Transpose(Sort[Transpose[m1], l2]) → m2
  9. Shuffle(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}
  10. Zip(Random[1, g - 1], g, randomNosForG3) → randomNosForH3
  11. Shuffle(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}
  12. Zip(Random[1, g - 1], g, randomNosForG4) → randomNosForH4
  13. Shuffle(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}
  14. Zip(RandomElement[Sequence[2, 10] \ {b}], b, randomNosForB1) → randomNosForD1
  15. Zip(Random[b / d, b - 1], b, randomNosForB1, d, randomNosForD1) → randomNosForA1
  16. Zip(Random[1, (a / b * d)], a, randomNosForA1, b, randomNosForB1, d, randomNosForD1) → randomNosForC1
  17. Shuffle(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}
  18. Zip(RandomElement[Sequence[5, 10] \ {b}], b, randomNosForB2) → randomNosForD2
  19. Zip(Random[b + 1, (2 * b)], b, randomNosForB2) → randomNosForA2
  20. If(same, m2(2, value2) + 1, m2(2, value2)) → d4
  21. If(same, m2(2, value2) + 1, m2(2, value2)) → d3
  22. If(same, m2(2, value2) + 1, m2(2, value2)) → d1
  23. Element(randomNosForG3, Mod[questionCount, 100] + 1) → g3
  24. Element(randomNosForH3, Mod[questionCount, 100] + 1) → h3
  25. Element(randomNosForG4, Mod[questionCount, 100] + 1) → g4
  26. Element(randomNosForH4, Mod[questionCount, 100] + 1) → h4
  27. Element(randomNosForC1, Mod[questionCount, 100] + 1) → c2
  28. Element(randomNosForD2, Mod[questionCount, 100] + 1) → d2
  29. Element(randomNosForA2, Mod[questionCount, 100] + 1) → a2
  30. Element(randomNosForB2, Mod[questionCount, 100] + 1) → b2
  31. Join(Sequence[Shuffle[{1, 2, 3, 4}], m, 1, 30]) → randomNosForTyp
  32. Element({d1, d2, d3, d4}, typ) → numD
  33. Element({b1, b2, b3, b4}, typ) → numB
  34. If(same ∧ numB > numD ∧ Element[{a1, a2, a3, a4}, typ] ≠ numB - 1, Element[{a1, a2, a3, a4}, typ] + 1, Element[{a1, a2, a3, a4}, typ]) → numAalt
  35. If(same, numAalt, Element[{a1, a2, a3, a4}, typ]) → numA
  36. If(same ∧ numB < numD ∧ Element[{c1, c2, c3, c4}, typ] ≠ 1, Element[{c1, c2, c3, c4}, typ] - 1, Element[{c1, c2, c3, c4}, typ]) → numCalt
  37. If(same, numCalt, Element[{c1, c2, c3, c4}, typ]) → numC
  38. Element({g1, g2, g3, g4}, typ) → numG
  39. If(Defined[inputg] ∨ Defined[inputa] ∨ Defined[inputb], If[gemischt1 ∧ Defined[inputg], inputg, 0] + inputa / inputb ≟ If[gemischt1, numG, 0] + numA / numB, true) → correctAB
  40. Element({h1, h2, h3, h4}, typ) → numH
  41. If(sol1raw < sol2raw, sol1raw / GCD[sol1raw, sol2raw], (sol1raw - (sol2raw * floor(sol1raw / sol2raw))) / GCD[sol1raw, sol2raw]) → sol1
  42. If(sol1raw < sol2raw, 0, floor(sol1raw / sol2raw)) → sol0
  43. If(Defined[inputsol0], inputsol0 ≟ sol0 ∧ inputsol1 / inputsol2 ≟ sol1 / sol2, inputsol1 / inputsol2 ≟ sol1raw / sol2raw) → correctSol
  44. If(Defined[inputh] ∨ Defined[inputc] ∨ Defined[inputd], If[gemischt2 ∧ Defined[inputh], inputh, 0] + inputc / inputd ≟ If[gemischt2, numH, 0] + numC / numD, true) → correctCD
  45. Zip(RandomElement[Sequence[2, 10] \ Join[Sequence[(k * PrimeFactors[b]), k, 1, 10]]], b, randomNosForB4) → randomNosForD4
  46. Zip(Random[1, (a / b * d)], a, randomNosForA4, b, randomNosForB4, d, randomNosForD4) → randomNosForC4
  47. Textfield(inputa) → Eingabefelda
  48. Textfield(inputb) → Eingabefeldb
  49. Shuffle(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}
  50. Append(true, Sequence[If[randomNosForB1(i) ≟ randomNosForB1(i - 1), false, true], i, 2, 100]) → stayX
  51. Append(true, Sequence[If[randomNosForY(i) ≟ randomNosForY(i - 1), false, true], i, 2, 100]) → stayY
  52. Remove(Sequence[If[stayX(i), randomNosForB1(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForXwithoutRepeat
  53. Remove(Sequence[If[stayY(i), randomNosForY(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForYwithoutRepeat
  54. Element(randomNosForXwithoutRepeat, Mod[questionCount, Length[randomNosForXwithoutRepeat]] + 1) → numXwithoutRepeat
  55. Element(randomNosForYwithoutRepeat, Mod[questionCount, Length[randomNosForYwithoutRepeat]] + 1) → numYwithoutRepeat
  56. Zip(Random[1, d - 1], d, randomNosForD2) → randomNosForC2
  57. IsInteger(sol1 / sol2) → checkWholeNum
  58. LaTeX(checkWholeNum, true, true) → Text3
  59. Corner(TextAngabe, 3) → P
  60. Textfield(inputc) → Eingabefeldc
  61. Textfield(inputd) → Eingabefeldd
  62. Textfield(inputg) → Eingabefeldg
  63. Textfield(inputh) → Eingabefeldh
  64. Textfield(inputsol0) → Eingabefeldsol0
  65. Textfield(inputsol1) → Eingabefeldsol1
  66. Textfield(inputsol2) → Eingabefeldsol2
  67. LCM(numB, numD) → vielfaches
  68. LCM(numB, numD) → sol2test
  69. LCM(numB, numD) → inputnennererweitert
  70. LCM(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.