Inequalities on Number Line with Slider Control

Inequalities on Number Line with Slider Control
Loading the math board and drawing, please wait…
2020-05-03 04:26
This example demonstrates representing inequalities on a number line with slider-controlled segments, showing how their positions relative to the x-axis illustrate inequality solutions. It involves core concepts like inequalities, number line representation, and geometric construction. GeoGebra commands like TextToUnicode, Sequence, If, Element, Segment, and Polygon are used to construct the interactive model. Suitable for middle school students and educators to explore geometric interpretations of inequalities.

GeoGebra Commands & Parameters

  1. TextToUnicode(Text[c]) → lc
  2. Sequence(If[Defined[IndexOf[Element[listIneqsym, n], lc]], IndexOf[Element[listIneqsym, n], lc], 0], n, 1, 4) → clsr1
  3. If(Length[clsr1] - Sum[Sequence[If[Element[clsr1, t] ≟ 0, 1, 0], t, 1, 4]] < 2, Sequence[If[Defined[IndexOf[Element[listIneqsym, n], lc, Sum[clsr1] + 1]], IndexOf[Element[listIneqsym, n], lc, Sum[clsr1] + 1], 0], n, 1, 4], {0, 0, 0, 0}) → clsr2
  4. TextToUnicode(Text[a]) → la
  5. TextToUnicode(Text[b]) → lb
  6. Sequence(Point[a, t] + (0, shiftA), t, 0, 1) → Endpointsa
  7. Sequence(Point[b, t] + (0, shiftB), t, 0, 1) → Endpointsb
  8. Sequence(Sequence[Element[{clsr1, clsr2}, n, m], m, 1, 4], n, 1, 2) → cls
  9. Sequence(Point[c, t] + (0, shiftC), t, 0, 1) → Endpointsc
  10. Sequence(Sequence[If[Defined[IndexOf[Element[listIneqsym, t], lb, n]], IndexOf[Element[listIneqsym, t], lb, n], 0], t, 1, 4], n, 1, 4, 3) → bls
  11. Sequence(Sequence[If[Defined[IndexOf[Element[listIneqsym, t], la, n]], IndexOf[Element[listIneqsym, t], la, n], 0], t, 1, 4], n, 1, 4, 3) → als
  12. Sequence(If[Element[cls, 1, m] + Element[cls, 2, m] ≟ 0, 0, If[Element[cls, 1, m] ≟ Element[cls, 2, m], 1, If[(Element[cls, 1, m] * Element[cls, 2, m]) ≟ 0, 1, 2]]], m, 1, 4) → clls
  13. Sequence(If[Element[bls, 1, m] + Element[bls, 2, m] ≟ 0, 0, If[Element[bls, 1, m] ≟ Element[bls, 2, m], 1, If[(Element[bls, 1, m] * Element[bls, 2, m]) ≟ 0, 1, 2]]], m, 1, 4) → blls
  14. Sequence(If[Element[als, 1, m] + Element[als, 2, m] ≟ 0, 0, If[Element[als, 1, m] ≟ Element[als, 2, m], 1, If[(Element[als, 1, m] * Element[als, 2, m]) ≟ 0, 1, 2]]], m, 1, 4) → alls
  15. If(IndexOf[1, alls] > 2, 0, 2) → pta
  16. If(IndexOf[1, blls] > 2, 0, 2) → ptb
  17. If(IndexOf[1, alls] ≟ 1 ∨ IndexOf[1, alls] ≟ 3, 2, 1) → da
  18. If(IndexOf[1, blls] ≟ 1 ∨ IndexOf[1, blls] ≟ 3, 2, 1) → db
  19. Element(Endpointsa, da) → sta
  20. Element(Endpointsb, db) → stb
  21. Element(Endpointsa, If[da ≟ 1, 2, 1]) → eta
  22. Element(Endpointsb, If[db ≟ 1, 2, 1]) → etb
  23. Segment(sta, eta) → sega
  24. Segment(stb, etb) → segb
  25. Element(Endpointsc, 1) → stc1
  26. Element(Endpointsc, 2) → stc2
  27. If(c(stc2), 0, 2) → ptc2
  28. If(c(stc1), 0, 2) → ptc1
  29. If(Sum[clls] ≟ 1, If[IndexOf[1, clls] ≟ 1 ∨ IndexOf[1, clls] ≟ 3, 2, 1], 3) → flagc
  30. If(flagc ≟ 2, Segment[stc2, stc1], Segment[stc1, stc2]) → segc
  31. Polygon(stc1, stc2, (x(stc2), 0), (x(stc1), 0)) → soln, f, g, h, i