Plot Integers on a Number Line

Plot Integers on a Number Line
Loading the math board and drawing, please wait…
2016-09-29 14:18
This example demonstrates how to plot integers on a number line. Key mathematical concepts include integers and their representation on a number line. GeoGebra commands such as Random, Segment, Sequence, and Join are used in construction. Suitable for middle school and above students to learn about number lines and integers.

GeoGebra Commands & Parameters

  1. Random(1, 9) → Int2
  2. Random(-9, 9) → Int3
  3. Segment(StartPoint, EndPoint) → MainSegment
  4. Random(-9, -1) → Int1
  5. Sequence(Segment[(i / 10, 2.2), (i / 10, 7)], i, -110, 110, 1) → CustomGridSegments
  6. Sequence((i, 0.5), i, -10, 10, 1) → CustomGridPoints
  7. Join({CustomGridPoints, CustomGridSegments}) → CustomFullGrid
  8. Point(CustomFullGrid) → Point1
  9. Point(CustomFullGrid) → Point2
  10. Point(CustomFullGrid) → Point3
  11. Shuffle(PointsList) → PointsListShuffled
  12. LaTeX(Text["\checkmark"]) → RightCheck
  13. LaTeX(Text["×"]) → WrongCheck
  14. Sequence((i, 0), i, x(StartPoint) + 2, x(EndPoint) - 2, 2) → TickMarksSequence
  15. Sequence(Text[i, (i - 0.2, -1.2)], i, -10, 10, 2) → DisplayTickMarksSequence
  16. If(Int1 ≥ 0, LaTeX[Text["\,\,\," + Int1]], LaTeX[Text[Int1]]) → IntDisplay1
  17. If(Int2 ≥ 0, LaTeX[Text["\,\,\, " + Int2]], LaTeX[Text[Int2]]) → IntDisplay2
  18. If(Int3 ≥ 0, LaTeX[Text["\,\,\," + Int3]], LaTeX[Text[Int3]]) → IntDisplay3
  19. Text(IntDisplay1, AdjustedPoint1, true, true) → IntDisplay1centered
  20. Text(IntDisplay2, AdjustedPoint2, true, true) → IntDisplay2centered
  21. Text(IntDisplay3, AdjustedPoint3, true, true) → IntDisplay3centered