Adding on the Number Line

Adding on the Number Line
Loading the math board and drawing, please wait…
2021-08-18 18:23
This example demonstrates how to perform addition on a number line. It involves core mathematical concepts such as the visualization and interpretation of addition, explaining it as combining or moving along natural numbers on the number line. Key GeoGebra commands and objects used include Join, Element, Shuffle, Sequence, Point, Textfield, Polygon, Vector; and objects like aInput, questionCount, listeFaktoren, faktor, O2, randomNosForA1, a1, a, randomNosForB1, b1, b, randomNosForC1, c1, c, heightA, A1correct, PA, C2, C1, B1, A1, B2, A2, C2correct, B2correct, A2correct, heightB, PB, correct2, correct1, Blue, Green, Orange, Red, Purple, Gray, GrayDark, validate, showanswer, showsolution. It is suitable for students in grades 5-6 to understand and practice addition.

GeoGebra Commands & Parameters

  1. Join(Sequence[Shuffle[{1, 2, 3, 4, 5, 6, 10}], m, 1, 25]) → listeFaktoren
  2. Element(listeFaktoren, Mod[questionCount, 100] + 1) → faktor
  3. Shuffle(Sequence[Random[2, floor(x(O2) - 1) / 3], i, 1, 100]) → randomNosForA1, {2, 6, 5, 5, 5, 2, 5, 4, 2, 2, 3, 2, 6, 3, 2, 6, 3, 3, 3, 2, 6, 5, 6, 2, 5, 6, 4, 6, 3, 4, 4, 6, 2, 5, 6, 5, 6, 6, 6, 4, 2, 3, 4, 3, 5, 5, 5, 3, 2, 4, 5, 5, 6, 3, 6, 3, 2, 4, 4, 4, 5, 2, 4, 6, 5, 6, 2, 6, 3, 5, 2, 3, 6, 3, 4, 5, 2, 4, 4, 3, 5, 6, 4, 2, 3, 5, 3, 4, 5, 6, 6, 2, 4, 2, 5, 5, 4, 3, 3, 4}
  4. Element(randomNosForA1, Mod[questionCount, 100] + 1) → a1
  5. Shuffle(Sequence[Random[2, floor(x(O2) - 1) / 3], i, 1, 100]) → randomNosForB1, {2, 2, 6, 3, 5, 5, 6, 2, 2, 2, 3, 4, 2, 6, 6, 3, 5, 2, 4, 2, 4, 3, 4, 3, 4, 6, 2, 4, 4, 3, 6, 2, 5, 6, 4, 6, 6, 2, 5, 2, 3, 6, 5, 2, 6, 3, 3, 6, 4, 6, 5, 3, 6, 5, 4, 3, 6, 4, 6, 2, 4, 5, 5, 6, 3, 4, 5, 2, 4, 4, 2, 4, 3, 4, 5, 3, 3, 2, 4, 5, 4, 3, 5, 2, 3, 2, 2, 4, 4, 4, 3, 5, 5, 4, 5, 4, 3, 4, 5, 5}
  6. Element(randomNosForB1, Mod[questionCount, 100] + 1) → b1
  7. Shuffle(Sequence[Random[2, floor(x(O2) - 1) / 3], i, 1, 100]) → randomNosForC1, {2, 3, 6, 3, 2, 2, 3, 5, 6, 2, 4, 2, 6, 5, 5, 3, 3, 3, 2, 4, 2, 3, 3, 6, 4, 3, 2, 6, 2, 5, 6, 3, 2, 4, 4, 2, 4, 4, 6, 5, 4, 3, 4, 4, 6, 5, 6, 2, 4, 3, 2, 6, 3, 5, 5, 5, 2, 3, 6, 6, 3, 3, 4, 4, 5, 5, 2, 3, 6, 3, 5, 3, 4, 4, 4, 3, 5, 5, 3, 3, 4, 6, 5, 6, 5, 2, 4, 3, 4, 3, 5, 6, 2, 6, 5, 5, 4, 3, 4, 3}
  8. Element(randomNosForC1, Mod[questionCount, 100] + 1) → c1
  9. Sequence((m, heightA), m, 0, x(O2) - 1) → PA
  10. Point(PA) → C2
  11. Point(PA) → C1
  12. Point(PA) → B1
  13. Point(PA) → A1
  14. Point(PA) → B2
  15. Point(PA) → A2
  16. Textfield(aInput) → InputBox1
  17. Textfield(bInput) → InputBox2
  18. Polygon(PtopLeftCornerFeedback, PtopRightCornerFeedback, PbottomRightCornerFeedback, PbottomLeftCornerFeedback) → rectangleCorrect, ptopleftcornerfeedback, ptoprightcornerfeedback, pbottomrightcornerfeedback, pbottomleftcornerfeedback
  19. Vector(O1, O2) → strahl
  20. Sequence(Segment[O1 - (0, (1 / 2 * heightlines)) + (m, 0), O1 + (0, (1 / 2 * heightlines)) + (m, 0)], m, 0, x(O2) - 1) → lines
  21. Sequence(Text["\textsf{" + ((m * faktor)) + "}", (m + 0.1, -1.2), true, true, -0, 1], m, 0, x(O2) - 1) → text
  22. Vector(A1, A2) → va
  23. Vector(B1, B2) → vb
  24. Vector(C1, C2) → vc
  25. Vector(A2correct, B2correct) → vbcorrect
  26. Vector(B2correct, C2correct) → vccorrect
  27. Vector(A1correct, A2correct) → vacorrect
  28. Vector(A1correct - (0, 2.5), C2correct - (0, 2.5)) → vcorrect

AI Drawing Prompt Reference

Draw a horizontal number line with evenly spaced ticks labeled by multiples of a random factor. Place three draggable point pairs on the line and connect each pair with an arrow vector to show the first addend, the second addend, and their sum. Add two text input boxes for the learner to enter the addends. Below the line, include a rectangular feedback area that changes color to indicate whether the answer is correct. Construct the figure by first generating a random factor, then random addends, then the numbered ticks and labels, then the vectors and feedback rectangle.
The prompt above was compiled from the original drawing commands and is for reference only.