Math Operations with the Magic Cauldron
Loading the math board and drawing, please wait…
In collections
Addieren und Subtrahieren von ganzen und rationalen Zahlen
This example demonstrates mathematical operations using a magic cauldron, involving integers, natural numbers, addition, and subtraction. Using GeoGebra commands such as Sequence, Element, Textfield, Join, etc., dynamic mathematical problems can be constructed. Suitable for high-grade elementary to junior high school students to understand the practical application of mathematical operations.
GeoGebra Commands & Parameters
Sequence(Random[1, 10], i, 1, 10) → randomNumbers, {5, 2, 7, 8, 3, 6, 10, 7, 7, 6}Element(randomNumbers, Mod[questionCount, Length[randomNumbers]] + 1) → randomNumberTextfield(input) → inputBoxJoin({Sequence[Segment[Corner[4] + (RasterPixMat * ((k * RasterStepXY), 0)), Corner[4] + (RasterPixMat * ((k * RasterStepXY), RasterMaxY))], k, 0, RasterMaxX / RasterStepXY], Sequence[Segment[Corner[4] + (RasterPixMat * (0, (k * RasterStepXY))), Corner[4] + (RasterPixMat * (RasterMaxX, (k * RasterStepXY)))], k, 0, RasterMaxY / RasterStepXY]}) → RasterStreckenJoin({Sequence[Text[UnicodeToLetter[65 + k], Midpoint[Corner[4] + (RasterPixMat * ((k * RasterStepXY), RasterMaxY)), Corner[4] + (RasterPixMat * (((k + 1) * RasterStepXY), RasterMaxY))], false, true, 0, -1], k, 0, RasterMaxX / RasterStepXY - 1], Sequence[Text[("" * k), Midpoint[Corner[4] + (RasterPixMat * (RasterMaxX, ((k - 1) * RasterStepXY))), Corner[4] + (RasterPixMat * (RasterMaxX, (k * RasterStepXY)))], false, true, 1, 0], k, 1, RasterMaxY / RasterStepXY]}) → RasterBeschriftungSequence(Sequence[Corner[4] + (RasterPixMat * ((k * RasterStepXY), (m * RasterStepXY))), k, 0, RasterMaxX / RasterStepXY], m, 0, RasterMaxY / RasterStepXY) → RasterPunkteTextfield(input031) → InputBox031Textfield(input032) → InputBox032Textfield(input041) → InputBox041Textfield(input042) → InputBox042SelectedIndex(dropdown031) → index031SelectedIndex(dropdown032) → index032SelectedIndex(dropdown041) → index041SelectedIndex(dropdown042) → index042Sequence(IsInRegion[AllPStones06(k), RegionZK(1)], k, 1, Length[AllPStones06]) → StoneInRegion06Ellipse(Midpoint[PointsAZK(1), PointsAZK(2)] + (sqrt(Distance[PointsAZK(2), Midpoint[PointsAZK(1), PointsAZK(2)]]^(2) - Distance[PointsBZK(2), Midpoint[PointsAZK(1), PointsAZK(2)]]^(2)), 0), Midpoint[PointsAZK(1), PointsAZK(2)] + ((-sqrt(Distance[PointsAZK(2), Midpoint[PointsAZK(1), PointsAZK(2)]]^(2) - Distance[PointsBZK(2), Midpoint[PointsAZK(1), PointsAZK(2)]]^(2))), 0), Distance[PointsAZK(1), PointsAZK(2)] / 2) → ellZKSequence(IsInRegion[AllPStones01(k), RegionZK(1)], k, 1, Length[AllPStones01]) → StoneInRegion01Sum(Sequence[If[StoneInRegion01(k), AllNumbersStones01(k), 0], k, 1, Length[AllNumbersStones01]]) → actualTemperature01Sum(Sequence[If[StoneInRegion06(k), AllNumbersStones06(k), 0], k, 1, Length[AllNumbersStones06]]) → actualTemperature06Sequence(IsInRegion[AllPStones07(k), RegionZK(1)], k, 1, Length[AllPStones07]) → StoneInRegion07Sum(Sequence[If[StoneInRegion07(k), AllNumbersStones07(k), 0], k, 1, Length[AllNumbersStones07]]) → actualTemperature07Sequence(IsInRegion[AllPStones08(k), RegionZK(1)], k, 1, Length[AllPStones08]) → StoneInRegion08Sum(Sequence[If[StoneInRegion08(k), AllNumbersStones08(k), 0], k, 1, Length[AllNumbersStones08]]) → actualTemperature08If(step < 6, actualTemperature01, step ≟ 6, actualTemperature06, step ≟ 7, actualTemperature07, actualTemperature08) → actualTemperatureSequence(((dimStoneA * cos(k°)), (dimStoneB * sin(k°))), k, 0, 360, 5) → PointStoneText((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[numberStone011 > 0, "+", numberStone011 ≟ 0, "\phantom{+}", "\(-\)"] * abs(numberStone011)), (abs(numberStone011) * "")]) * "}}}"), PStone011 + (0, 0.05), false, true, 0, 0) → txtStone011Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[numberStone012 > 0, "+", numberStone012 ≟ 0, "\phantom{+}", "\(-\)"] * abs(numberStone012)), (abs(numberStone012) * "")]) * "}}}"), PStone012 + (0, 0.05), false, true, 0, 0) → txtStone012Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[numberStone013 > 0, "+", numberStone013 ≟ 0, "\phantom{+}", "\(-\)"] * abs(numberStone013)), (abs(numberStone013) * "")]) * "}}}"), PStone013 + (0, 0.05), false, true, 0, 0) → txtStone013Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[numberStone014 > 0, "+", numberStone014 ≟ 0, "\phantom{+}", "\(-\)"] * abs(numberStone014)), (abs(numberStone014) * "")]) * "}}}"), PStone014 + (0, 0.05), false, true, 0, 0) → txtStone014Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[numberStone015 > 0, "+", numberStone015 ≟ 0, "\phantom{+}", "\(-\)"] * abs(numberStone015)), (abs(numberStone015) * "")]) * "}}}"), PStone015 + (0, 0.05), false, true, 0, 0) → txtStone015Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[numberStone016 > 0, "+", numberStone016 ≟ 0, "\phantom{+}", "\(-\)"] * abs(numberStone016)), (abs(numberStone016) * "")]) * "}}}"), PStone016 + (0, 0.05), false, true, 0, 0) → txtStone016Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[2 > 0, "+", 2 ≟ 0, "\phantom{+}", "\(-\)"] * abs(2)), "2"]) * "}}}"), PosStoneDeko011 + (0, 0.05), false, true, 0, 0) → txtStoneDeko011Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[-3 > 0, "+", -3 ≟ 0, "\phantom{+}", "\(-\)"] * abs(-3)), "3"]) * "}}}"), PosStoneDeko012 + (0, 0.05), false, true, 0, 0) → txtStoneDeko012Text((((("\textsf{\bold{" * If[actualTemperature > 0, "+", ""]) * "\(") * actualTemperature) * "\) °C}}"), PosDigitaleAnzeige + (0, 0.05), false, true, 0, 0) → txtDigitaleAnzeigeIf(step ≟ 2, activateNext02, true, step ≟ 3, correct031 ∧ correctdd031 ∧ correct032 ∧ correctdd032, step ≟ 4, correct041 ∧ correctdd041 ∧ correct042 ∧ correctdd042, step ≟ 6, actualTemperature06 ≟ 3, step ≟ 7, actualTemperature07 ≟ -2) → clickableBtnNextText((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[numberStone061 > 0, "+", numberStone061 ≟ 0, "\phantom{+}", "\(-\)"] * abs(numberStone061)), (abs(numberStone061) * "")]) * "}}}"), PStone061 + (0, 0.05), false, true, 0, 0) → txtStone061Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[numberStone062 > 0, "+", numberStone062 ≟ 0, "\phantom{+}", "\(-\)"] * abs(numberStone062)), (abs(numberStone062) * "")]) * "}}}"), PStone062 + (0, 0.05), false, true, 0, 0) → txtStone062Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[numberStone063 > 0, "+", numberStone063 ≟ 0, "\phantom{+}", "\(-\)"] * abs(numberStone063)), (abs(numberStone063) * "")]) * "}}}"), PStone063 + (0, 0.05), false, true, 0, 0) → txtStone063Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[numberStone064 > 0, "+", numberStone064 ≟ 0, "\phantom{+}", "\(-\)"] * abs(numberStone064)), (abs(numberStone064) * "")]) * "}}}"), PStone064 + (0, 0.05), false, true, 0, 0) → txtStone064Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[numberStone065 > 0, "+", numberStone065 ≟ 0, "\phantom{+}", "\(-\)"] * abs(numberStone065)), (abs(numberStone065) * "")]) * "}}}"), PStone065 + (0, 0.05), false, true, 0, 0) → txtStone065Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[numberStone066 > 0, "+", numberStone066 ≟ 0, "\phantom{+}", "\(-\)"] * abs(numberStone066)), (abs(numberStone066) * "")]) * "}}}"), PStone066 + (0, 0.05), false, true, 0, 0) → txtStone066Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[-2 > 0, "+", -2 ≟ 0, "\phantom{+}", "\(-\)"] * abs(-2)), "2"]) * "}}}"), PosStoneDeko061 + (0, 0.05), false, true, 0, 0) → txtStoneDeko061Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[-4 > 0, "+", -4 ≟ 0, "\phantom{+}", "\(-\)"] * abs(-4)), "4"]) * "}}}"), PosStoneDeko062 + (0, 0.05), false, true, 0, 0) → txtStoneDeko062Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[6 > 0, "+", 6 ≟ 0, "\phantom{+}", "\(-\)"] * abs(6)), "6"]) * "}}}"), PosStoneDeko063 + (0, 0.05), false, true, 0, 0) → txtStoneDeko063Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[8 > 0, "+", 8 ≟ 0, "\phantom{+}", "\(-\)"] * abs(8)), "8"]) * "}}}"), PosStoneDeko071 + (0, 0.05), false, true, 0, 0) → txtStoneDeko071Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[-6 > 0, "+", -6 ≟ 0, "\phantom{+}", "\(-\)"] * abs(-6)), "6"]) * "}}}"), PosStoneDeko072 + (0, 0.05), false, true, 0, 0) → txtStoneDeko072Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[3 > 0, "+", 3 ≟ 0, "\phantom{+}", "\(-\)"] * abs(3)), "3"]) * "}}}"), PosStoneDeko073 + (0, 0.05), false, true, 0, 0) → txtStoneDeko073Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[-1 > 0, "+", -1 ≟ 0, "\phantom{+}", "\(-\)"] * abs(-1)), "1"]) * "}}}"), PosStoneDeko074 + (0, 0.05), false, true, 0, 0) → txtStoneDeko074Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[-2 > 0, "+", -2 ≟ 0, "\phantom{+}", "\(-\)"] * abs(-2)), "2"]) * "}}}"), PosStoneDeko075 + (0, 0.05), false, true, 0, 0) → txtStoneDeko075Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[1 > 0, "+", 1 ≟ 0, "\phantom{+}", "\(-\)"] * abs(1)), "1"]) * "}}}"), PosStoneDeko076 + (0, 0.05), false, true, 0, 0) → txtStoneDeko076Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[-3 > 0, "+", -3 ≟ 0, "\phantom{+}", "\(-\)"] * abs(-3)), "3"]) * "}}}"), PosStoneDeko077 + (0, 0.05), false, true, 0, 0) → txtStoneDeko077Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[-4 > 0, "+", -4 ≟ 0, "\phantom{+}", "\(-\)"] * abs(-4)), "4"]) * "}}}"), PosStoneDeko081 + (0, 0.05), false, true, 0, 0) → txtStoneDeko081Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[-3 > 0, "+", -3 ≟ 0, "\phantom{+}", "\(-\)"] * abs(-3)), "3"]) * "}}}"), PosStoneDeko082 + (0, 0.05), false, true, 0, 0) → txtStoneDeko082Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[numberStone071 > 0, "+", numberStone071 ≟ 0, "\phantom{+}", "\(-\)"] * abs(numberStone071)), (abs(numberStone071) * "")]) * "}}}"), PStone071 + (0, 0.05), false, true, 0, 0) → txtStone071Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[numberStone072 > 0, "+", numberStone072 ≟ 0, "\phantom{+}", "\(-\)"] * abs(numberStone072)), (abs(numberStone072) * "")]) * "}}}"), PStone072 + (0, 0.05), false, true, 0, 0) → txtStone072Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[numberStone073 > 0, "+", numberStone073 ≟ 0, "\phantom{+}", "\(-\)"] * abs(numberStone073)), (abs(numberStone073) * "")]) * "}}}"), PStone073 + (0, 0.05), false, true, 0, 0) → txtStone073Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[numberStone074 > 0, "+", numberStone074 ≟ 0, "\phantom{+}", "\(-\)"] * abs(numberStone074)), (abs(numberStone074) * "")]) * "}}}"), PStone074 + (0, 0.05), false, true, 0, 0) → txtStone074Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[numberStone075 > 0, "+", numberStone075 ≟ 0, "\phantom{+}", "\(-\)"] * abs(numberStone075)), (abs(numberStone075) * "")]) * "}}}"), PStone075 + (0, 0.05), false, true, 0, 0) → txtStone075Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[numberStone076 > 0, "+", numberStone076 ≟ 0, "\phantom{+}", "\(-\)"] * abs(numberStone076)), (abs(numberStone076) * "")]) * "}}}"), PStone076 + (0, 0.05), false, true, 0, 0) → txtStone076Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[numberStone077 > 0, "+", numberStone077 ≟ 0, "\phantom{+}", "\(-\)"] * abs(numberStone077)), (abs(numberStone077) * "")]) * "}}}"), PStone077 + (0, 0.05), false, true, 0, 0) → txtStone077Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[numberStone081 > 0, "+", numberStone081 ≟ 0, "\phantom{+}", "\(-\)"] * abs(numberStone081)), (abs(numberStone081) * "")]) * "}}}"), PStone081 + (0, 0.05), false, true, 0, 0) → txtStone081Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[numberStone082 > 0, "+", numberStone082 ≟ 0, "\phantom{+}", "\(-\)"] * abs(numberStone082)), (abs(numberStone082) * "")]) * "}}}"), PStone082 + (0, 0.05), false, true, 0, 0) → txtStone082Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[numberStone083 > 0, "+", numberStone083 ≟ 0, "\phantom{+}", "\(-\)"] * abs(numberStone083)), (abs(numberStone083) * "")]) * "}}}"), PStone083 + (0, 0.05), false, true, 0, 0) → txtStone083Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[numberStone084 > 0, "+", numberStone084 ≟ 0, "\phantom{+}", "\(-\)"] * abs(numberStone084)), (abs(numberStone084) * "")]) * "}}}"), PStone084 + (0, 0.05), false, true, 0, 0) → txtStone084Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[numberStone085 > 0, "+", numberStone085 ≟ 0, "\phantom{+}", "\(-\)"] * abs(numberStone085)), (abs(numberStone085) * "")]) * "}}}"), PStone085 + (0, 0.05), false, true, 0, 0) → txtStone085Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[numberStone086 > 0, "+", numberStone086 ≟ 0, "\phantom{+}", "\(-\)"] * abs(numberStone086)), (abs(numberStone086) * "")]) * "}}}"), PStone086 + (0, 0.05), false, true, 0, 0) → txtStone086If(step ≟ 6, ¬(PStone061 ≟ PointZKStones(1) ∧ PStone062 ≟ PointZKStones(2) ∧ PStone063 ≟ PointZKStones(3) ∧ PStone064 ≟ PointParkedStones(1) ∧ PStone065 ≟ PointParkedStones(2) ∧ PStone066 ≟ PointParkedStones(3)), step ≟ 7, ¬(PStone071 ≟ PointZKStones(1) ∧ PStone072 ≟ PointZKStones(2) ∧ PStone073 ≟ PointZKStones(3) ∧ PStone074 ≟ PointParkedStones(1) ∧ PStone075 ≟ PointParkedStones(2) ∧ PStone076 ≟ PointParkedStones(3) ∧ PStone077 ≟ PointParkedStones(4)), step ≟ 8, ¬(PStone081 ≟ PointZKStones(1) ∧ PStone082 ≟ PointZKStones(2) ∧ PStone083 ≟ PointZKStones(3) ∧ PStone084 ≟ PointParkedStones(1) ∧ PStone085 ≟ PointParkedStones(2) ∧ PStone086 ≟ PointParkedStones(3)), true) → clickableBtnResetTaskText("\bold{\textsf{Zieh mich!}}", PosZK2 + (-1.25, -0.25), false, true, 0, 0) → CapZiehMich2Text("\bold{\textsf{Zieh mich!}}", PointParkedStones(1) + (-2.5, 0.75), false, true, 0, 0) → CapZiehMich1Segment(Midpoint[Corner[CapZiehMich1, 1], Corner[CapZiehMich1, 2]], PointParkedStones(1) + ((-dimStoneA) - 0.25, 0)) → segZiehMich1Segment(Midpoint[Corner[CapZiehMich2, 4], Corner[CapZiehMich2, 3]], Midpoint[Corner[CapZiehMich2, 4], Corner[CapZiehMich2, 3]] + (0.65 * Vector[Midpoint[Corner[CapZiehMich2, 4], Corner[CapZiehMich2, 3]], PointZKStones(3) + (0, 0)])) → segZiehMich2If(step ≟ 3 ∧ (¬correct031) ∨ step ≟ 4 ∧ (¬correct041), (3.75, 8), (3.75, 6)) → PosShowSolutionText((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[1 > 0, "+", 1 ≟ 0, "\phantom{+}", "\(-\)"] * abs(1)), "1"]) * "}}}"), PosStoneDeko083 + (0, 0.05), false, true, 0, 0) → txtStoneDeko083Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[2 > 0, "+", 2 ≟ 0, "\phantom{+}", "\(-\)"] * abs(2)), "2"]) * "}}}"), PosStoneDeko064 + (0, 0.05), false, true, 0, 0) → txtStoneDeko064Text((("\textsf{\bold{\textcolor{white}{" * If[showMinusStone, (If[8 > 0, "+", 8 ≟ 0, "\phantom{+}", "\(-\)"] * abs(8)), "8"]) * "}}}"), PosStoneDeko065 + (0, 0.05), false, true, 0, 0) → txtStoneDeko065Sequence(PointsThermoEnd(1) + (k * (0, Distance[PointsThermoEnd(1), PointsThermoEnd(2)] / (thermoEnd - thermoStart))), k, 0, thermoEnd - thermoStart, 1) → PointsThermoRemoveUndefined(Sequence[If[Mod[TemperatureList(k), thermoStepMark] ≟ 0, Segment[PointsThermo(k) + (((-segLengthThermo)) / 2, 0), PointsThermo(k) + (segLengthThermo / 2, 0)]], k, 1, Length[PointsThermo]]) → segMarkThermoRemoveUndefined(Sequence[If[Mod[TemperatureList(k), thermoStepCap] ≟ 0, Text[((("\textsf{\(" * If[TemperatureList(k) > 0, "+", ""]) * TemperatureList(k)) * "\)}"), PointsThermo(k) + ((6 / 5 * segLengthThermo), 0.05), false, true, 0, 0]], k, 1, Length[PointsThermo]]) → CapThermoText(((("\textsf{\bold{\(" * If[actualTemperature > 0, "+", ""]) * actualTemperature) * "\)}}"), PointsThermo(IndexOf[actualTemperature, TemperatureList]) + ((-6 / 5 * segLengthThermo), 0.05), false, true, 0, 0) → CapActualTemperature