Representing Inequalities on a Number Line

Representing Inequalities on a Number Line
Loading the math board and drawing, please wait…
2015-07-02 17:14
This example demonstrates how to represent inequalities on a number line. It involves core math concepts like inequalities and number line representation. Construction uses GeoGebra commands and objects such as Textfield, Segment, Remove, If, IndexOf, Sequence, Denominator. Suitable for middle school and above students learning basic inequality representation.

GeoGebra Commands & Parameters

  1. Textfield(a) → Inequality
  2. Segment((x(P_{arrowright}), s_n), (x(Corner[2]), s_n)) → xAxis_{continuation}
  3. Textfield(xLeft) → InputBox1
  4. Textfield(xRight) → InputBox2
  5. Remove({IndexOf[8804, TextToUnicode[Text[a]]], IndexOf[62, TextToUnicode[Text[a]]], IndexOf[8805, TextToUnicode[Text[a]]], IndexOf[60, TextToUnicode[Text[a]]]}, {NaN, NaN, NaN}) → l1
  6. If(Min[a] < -100000, Max[a], Min[a]) → ineqnumpivot
  7. IndexOf(3, listidentifyIneq) → numidentifyIneq
  8. If(numidentifyIneq ≟ 2 ∨ numidentifyIneq ≟ 4, Midpoint[(x(Corner[2]), 1), (ineqnumpivot, 1)], Midpoint[(x(Corner[1]), 1), (ineqnumpivot, 1)]) → P_{ineqtext}
  9. Sequence(Text[LaTeX[i], (i - ticksize / 5 + n_t, -1.8 + s_n)], i, xLeft + 1, xRight - 1, ticksize) → ListxaxisNumbers
  10. Denominator(ineqnumpivot) → denompivot
  11. Sequence((i, s_n), i, xLeft, xRight, 1 / denompivot) → listTicks