Fractions on the Number Line
Loading the math board and drawing, please wait…
This example demonstrates how to represent fractions on a number line. Key mathematical concepts include fractions and their positions on the number line. Using GeoGebra commands such as Flatten, Sequence, and CurveCartesian, dynamic demonstrations of fraction addition and subtraction are provided. Suitable for high-grade elementary and junior high school students to learn about fractions and their applications.
GeoGebra Commands & Parameters
Flatten({0, Sequence[(CountIf[x ≟ "big", First[order, i]] * Denominator) + CountIf[x ≟ "little", First[order, i]], i, 1, Length[order]]}) → landingsSequence(CurveCartesian[((landings(i) - landings(i - 1)) / (((2 * π) * Denominator)) * (t - sin(t))) + landings(i - 1) / Denominator, ((1 + (landings(i) - landings(i - 1) ≟ Denominator)) / 2 / π * (1 - cos(t))), t, 0, (2 * π)], i, 1, Length[landings] - 1) → jumpsCurveCartesian(((landings(Length[landings]) - landings(Length[landings] - 1)) / (((2 * π) * Denominator)) * (t - sin(t))) + landings(Length[landings] - 1) / Denominator, ((1 + (landings(Length[landings]) - landings(Length[landings] - 1) ≟ Denominator)) / 2 / π * (1 - cos(t))), t, 0, ((2 * π) * jumpTimer)) → currentHopIf(Length[landings] ≟ 1, 1, (landings(Length[landings] - 1) + (jumpTimer * (landings(Length[landings]) - landings(Length[landings] - 1)))) / Denominator + 1) → maxSegment((0, 0), (Max[(2 * max), 10], 0)) → numberLineSequence(Point[{i, 0}], i, 0, (2 * (max + 1))) → l1Sequence(Segment[(i / Denominator, -0.02), (i / Denominator, 0.02)], i, 1, ((2 * (max + 1)) * Denominator)) → l2Sequence(Text[i, (i - right / 100, -0.17)], i, 0, (2 * (max + 1))) → l3Sequence(FractionText[(Element[landings, i + 1] - Element[landings, i]) / Denominator], i, 1, Length[landings] - 1) → jumpsTextAppend("", Sequence["+", i, 1, Length[jumpsText] - 1]) → plusTextIf(number ≥ 1, Text[floor(number)], If[Length[landings] ≟ 1, "0", ""]) → wholeNumberText((((("$\frac{" * fractionPartNumerator) * "}{") * Denominator) * "}"), (0, 0), true, true) → fractionPart