Walking on the Number Line

Walking on the Number Line
Loading the math board and drawing, please wait…
2013-06-15 04:00
This example demonstrates the addition and subtraction of integers by having a character walk along a number line. Example expressions can be shown or hidden using checkboxes. Commands like Point, Vector, If, Segment, Polygon are used. Suitable for students from upper elementary to middle school.

GeoGebra Commands & Parameters

  1. Point(xAxis) → A
  2. Point(xAxis) → B
  3. Point(xAxis) → C
  4. Vector(C, A) → u
  5. Vector(C, B) → v
  6. If(directionA ≟ 0, 1, 0) → Direction
  7. Point(xAxis) → O
  8. Vector(O, P) → w
  9. Point(xAxis) → Q
  10. Point(xAxis) → R
  11. Vector(Q, R) → z
  12. Vector(S_1, T_1) → e
  13. Vector(T_1, U_1) → f
  14. Vector(V_1, W_1) → k
  15. Vector(Z_1, A_2) → l
  16. Vector(B_2, C_2) → m
  17. Vector(F_2, G_2) → n
  18. Vector(H_2, I_2) → p
  19. Vector(J_2, K_2) → q
  20. Vector(L_2, M_2) → r
  21. Vector(N_2, O_2) → s
  22. Vector(P_2, Q_2) → t
  23. Vector(R_2, S_2) → u_1
  24. Vector(T_2, U_2) → v_1
  25. Vector(V_2, W_2) → g_1
  26. Point(xAxis) → D_3
  27. Vector(Q_3, R_3) → g
  28. Vector(S_3, T_3) → h
  29. Vector(U_3, V_3) → i
  30. Vector(W_3, Z_3) → j
  31. Vector(A_4, B_4) → w_1
  32. Vector(C_4, D_4) → z_1
  33. Point(xAxis) → M_4
  34. Point(xAxis) → N_4
  35. Vector(M_4, N_4) → a_1
  36. Segment(U_4, U_4 + (0, 0.7)) → d_1
  37. Segment(U_4, U_4 + (0, 0.7)) → e_1
  38. Vector(WalkStart, WalkStop) → f_1
  39. Polygon(ExpressionBoxPt, ExpressionBoxPt + (12, 0), ExpressionBoxPt + (12, 2.7), ExpressionBoxPt + (0, 2.7)) → exprBox, exprBoxB, exprBoxSegR, exprBoxSegT, exprBoxSegL
  40. Vector((0, 0.4), WalkStart + (0, -1 * 0.4)) → h_1
  41. Polygon(ResetPolyPt, ResetPolyPt + (2, 0), ResetPolyPt + (2, 1), ResetPolyPt + (0, 1)) → resetPoly, resetPolySegB, resetPolySegR, resetPolySegT, resetPolySegL
  42. Polygon(CharacterBoxPt, CharacterBoxPt + (6, 0), CharacterBoxPt + (6, 2.7), CharacterBoxPt + (0, 2.7)) → characterBox, charBoxSegB, charBoxSegR, charBoxSegT, charBoxSegL
  43. Polygon(HintBoxPt, HintBoxPt + (36, 0), HintBoxPt + (36, 4), HintBoxPt + (0, 4)) → hintBox, hintBoxSegB, hintBoxSegR, hintBoxSegT, hintBoxSegL
  44. Sequence(Segment[(i, 0.14), (i, -1 * 0.14)], i, -15, 20, 1) → hashTops
  45. Polygon((-15, -6.3), (20, -6.3), (20, -0.9), (-15, -0.9)) → solutionBox, solutionBoxB, solutionBoxR, solutionBoxT, solutionBoxL