Witch's Cauldron

Witch's Cauldron
Loading the math board and drawing, please wait…
2021-11-22 09:07
This example demonstrates the comparison and ordering of natural numbers, non-negative decimals, and fractions. Using GeoGebra commands such as Sequence, Element, RandomElement, etc., students can engage in interactive practice. Suitable for 5-6 grade students to learn and reinforce mathematical concepts.

GeoGebra Commands & Parameters

  1. Sequence(Random[2, 4], i, 1, numberOfQuestions) → randomNumbersSameElements, {3, 2, 4, 4, 3, 2, 4, 4, 3, 2, 2, 2, 3, 4, 2, 2, 3, 3, 2, 4, 2, 4, 4, 2, 2, 4, 3, 3, 2, 2, 2, 3, 2, 2, 3, 4, 3, 4, 3, 4, 2, 4, 2, 2, 3, 2, 4, 3, 4, 2}
  2. Element(randomNumbersSameElements, Mod[questionCount, Length[randomNumbersSameElements]] + 1) → actualRandomNumberSameElements
  3. Sequence(Sum[Sequence[(Random[If[i ≟ 1, 1, 0], If[i ≟ randomNumbersSameElements(1) + 1, 8, 9]] * 10^(6 - i)), i, 1, 6]], j, 1, numberOfQuestions) → randomNumbers1
  4. Element(randomNumbers1, Mod[questionCount, Length[randomNumbers1]] + 1) → actualRandomNumber1
  5. Sequence(Random[randomNumbers1(i) + 10^(5 - randomNumbersSameElements(i)), randomNumbers1(i) + 10^(6 - randomNumbersSameElements(i)) - Mod[randomNumbers1(i), 10^(6 - randomNumbersSameElements(i))] - 1], i, 1, numberOfQuestions) → randomNumbers2, {745875, 487380, 814081, 318778, 228382, 340006, 503575, 968398, 943776, 719898, 169770, 219763, 681996, 373777, 939999, 334218, 609736, 216631, 639886, 916029, 588540, 755270, 193898, 798313, 638973, 187199, 578816, 162824, 228868, 529308, 759989, 706994, 217348, 150190, 711811, 895586, 228962, 328154, 584990, 663399, 129689, 469488, 890235, 946923, 920909, 758097, 591088, 712899, 763588, 728189}
  6. Element(randomNumbers2, Mod[questionCount, Length[randomNumbers2]] + 1) → actualRandomNumber2
  7. RandomElement((actualRandomNumber1 + 1)…(actualRandomNumber2 - 1)) → actualRandomNumberZwischen1und2
  8. Sequence(Mod[floor(actualRandomNumberZwischen1und2 / 10^(i)), 10], i, 5, 0, -1) → actualRandomNumberZwischen1und2Split
  9. Sequence(Mod[floor(actualRandomNumber1 / 10^(i)), 10], i, 5, 0, -1) → actualRandomNumber1Split
  10. Sequence(Mod[floor(actualRandomNumber2 / 10^(i)), 10], i, 5, 0, -1) → actualRandomNumber2Split
  11. Sequence(RandomElement[{0, 1, 2, 3, 4, 5, 6, 7, 8, 9} \ {actualCorrectElements(i)}], i, 1, 6) → actualCorrectOrIncorrectElements, {3, 1, 9, 6, 6, 0}
  12. Join({Sequence[If[zahlInKessel(i), (actualCorrectElements(i) * 10^(6 - i)), 0], i, 1, 6], Sequence[If[zahlInKessel(6 + i), (actualCorrectOrIncorrectElements(i) * 10^(6 - i)), 0], i, 1, 6]}) → werteImKessel
  13. Sum(werteImKessel) → yourNumber
  14. If(Defined[IndexOf[true, zahlInKessel]], CountIf[a ≟ true, a, zahlInKessel] ≥ 1 ∧ (¬tooMuch), false) → clickableBtnValidate
  15. Textfield(input) → inputBox
  16. Ellipse(zauberkesselAreaA, zauberkesselAreaB, zauberkesselAreaC) → zauberkesselAreaEllipse
  17. Sequence(Corner[Object["txt" + (If[i < 10, "0", ""]) + (i)], 1], i, 1, 12) → textPunkte
  18. Append(Sum[Zip[("" * b), b, actualCorrectElements]], Flatten[Sequence[Sequence[Sum[Zip[("" * a), a, Join[{First[actualCorrectElements, j - 1], Take[actualCorrectOrIncorrectElements, j, j + i - 1], Last[actualCorrectElements, 6 - (j + i - 1)]}]]], j, 1, 6 - i + 1], i, 1, 5]]) → allPossibleRandomNumbersPart1
  19. Append(Sum[Zip[("" * b), b, actualCorrectOrIncorrectElements]], Flatten[Sequence[Sequence[Sum[Zip[("" * a), a, Join[{First[actualCorrectOrIncorrectElements, j - 1], Take[actualCorrectElements, j, j + i - 1], Last[actualCorrectOrIncorrectElements, 6 - (j + i - 1)]}]]], j, 1, 6 - i + 1], i, 1, 5]]) → allPossibleRandomNumbersPart2
  20. Append(Sum[Zip[("" * b), b, Join[{First[actualCorrectElements, 5], {0}}]]], Flatten[Sequence[Sequence[Sum[Zip[("" * a), a, Join[{First[actualCorrectElements, j - 1], Take[{0, 0, 0, 0, 0, 0}, j, j + i - 1], Last[actualCorrectElements, 6 - (j + i - 1)]}]]], j, 1, 6 - i + 1], i, 1, 5]]) → allPossibleRandomNumbersPart3
  21. Append(Sum[Zip[("" * b), b, Join[{First[actualCorrectOrIncorrectElements, 5], {0}}]]], Flatten[Sequence[Sequence[Sum[Zip[("" * a), a, Join[{First[actualCorrectOrIncorrectElements, j - 1], Take[{0, 0, 0, 0, 0, 0}, j, j + i - 1], Last[actualCorrectOrIncorrectElements, 6 - (j + i - 1)]}]]], j, 1, 6 - i + 1], i, 1, 5]]) → allPossibleRandomNumbersPart4
  22. Join({allPossibleRandomNumbersPart1, allPossibleRandomNumbersPart2, allPossibleRandomNumbersPart3, allPossibleRandomNumbersPart4}) → allPossibleRandomNumbers
  23. Unique(Sort[allPossibleRandomNumbers]) → allPossibleRandomNumbersSortUnique
  24. Length(allCorrectRandomNumbers) → anzCorrectElements
  25. Sequence(Take[allCorrectRandomNumbersTxt, k, k + anzElementsInLine - 1], k, 1, anzCorrectElements, anzElementsInLine) → allCorrectRandomNumbersForOutput

AI Drawing Prompt Reference

Draw an ellipse shape. Place several number text points on or around the ellipse. These numbers should be generated randomly and filtered, including natural numbers, decimals, and fractions. The text points should be evenly distributed. The construction order is: first draw the ellipse, then generate a random number sequence, filter the numbers that meet the criteria, and finally place the numbers as text points on the ellipse.
The prompt above was compiled from the original drawing commands and is for reference only.