Inequalities and Number Line
Loading the math board and drawing, please wait…
This example demonstrates how to represent the solution set of inequalities on a number line. Core math concepts include inequalities and number line representation. It uses GeoGebra commands like Sequence, RandomElement, Random, If, Polygon, Segment, Point, Append to dynamically visualize inequality solutions. Suitable for middle school and above students learning basic inequality concepts and visualizations.
GeoGebra Commands & Parameters
Sequence(-5 + (i * 0.5), i, 0, 20) → list1, {-5, -4.5, -4, -3.5, -3, -2.5, -2, -1.5, -1, -0.5, 0, 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5}RandomElement(list1) → x1Random(1, 4) → signIndexIf(sign1 ≟ ">" ∨ sign1 ≟ "≥", (x(Corner[3]), y(A)), (x(Corner[4]), y(A))) → A'Polygon(A, A', (x(A'), 0), (x(A), 0)) → poly1, a_1, a', c, dSegment(A, (x(A), 0)) → gSegment(A, A') → iPoint(xAxis) → TIf(sign1 ≟ ">", x(T) > x1, If[sign1 ≟ "≥", x(T) ≥ x1, If[sign1 ≟ "<", x(T) < x1, If[sign1 ≟ "≤", x(T) ≤ x1]]]) → satisfySequence(i, i, -6, 6) → listInt, {-6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6}Append("$?$", Reverse[Zip["$" + (Text[i]) + "$", i, listInt]]) → listIntTextIf(sign1 ≟ ">", ceil(x1 + 0.1), If[sign1 ≟ "≥", ceil(x1), If[sign1 ≟ "<", floor(x1 - 0.1), If[sign1 ≟ "≤", floor(x1)]]]) → intAnsIf(SelectedIndex[listIntText] ≥ 2, Element[listInt, 15 - SelectedIndex[listIntText]], 99) → intChosen