Visual Fraction Addition Tool
Loading the math board and drawing, please wait…
This example demonstrates how to visually add two fractions using dynamic bar charts. Core math concepts include finding common denominators (using LCM command), numerator-denominator operations, and simplifying results. Construction highlights: InputBox receives two fractions from users, Polygon draws movable bars representing fraction units, Sequence with animation timers animates the merging process, and Textfield displays step-by-step calculations. Objects include a1poly/a2poly (fraction bars), a1mover/a2mover (animation), InputBox (input), LCM (least common multiple), etc. Suitable for upper elementary and middle school math teaching, ideal for intuitive demonstration of fraction operations.
GeoGebra Commands & Parameters
Point({(a1 * moveTimer), (-2 * moveTimer)}) → a2moverPoint({0, 2 - (4 * moveTimer)}) → a1moverTextfield(a1text) → InputBox1Polygon(a1mover, a1mover + (a1, 0), a1mover + (a1, 1), a1mover + (0, 1)) → a1poly, f, g, h, iPolygon(a2mover, a2mover + (a2, 0), a2mover + (a2, 1), a2mover + (0, 1)) → a2poly, j, k, l, mTextfield(a2text) → InputBox2Polygon((0, 2), (a1, 2), (a1, 3), (0, 3)) → a1polyFixed, m_1, n_1, p_1, q_1Polygon((0, 0), (a2, 0), (a2, 1), (0, 1)) → a2polyFixed, r_1, s_1, t_1, f_2Point({0, 2 - (4 * barMoveTime)}) → a1barMoverPoint({0, (-2 * barMoveTime)}) → a2barMoverSequence(Segment[(i, 0), (i, 1)], i, 1 / a2denom, ceil(a2) - 1 / a2denom, 1 / a2denom) → list5Sequence(Segment[(i, 2), (i, 3)], i, 1 / a1denom, ceil(a1) - 1 / a1denom, 1 / a1denom) → list4LCM(a1denom, a2denom) → aSequence(Segment[(0, -2) + (i, 0), (0, -2) + (i, growBarTimer)], i, 1 / a, ceil(a1 + a2) - 1 / a, 1 / a) → list7Sequence(Polygon[(i, -2), (i + 1, -2), 4], i, 0, ceil(a1 + a2) - 1) → list3Sequence(Polygon[(i, 0), (i + 1, 0), 4], i, 0, ceil(a2) - 1) → list1Sequence(Polygon[(i, 2), (i + 1, 2), 4], i, 0, ceil(a1) - 1) → list2RemoveUndefined(Join[{Sequence[Segment[a1barMover + (i, 0), a1barMover + (i, 1)], i, 1 / a1denom, ceil(a1) - 1 / a1denom, 1 / a1denom], Sequence[Segment[a2barMover + (i, 0), a2barMover + (i, 1)], i, 1 / a2denom, ceil(a2) - 1 / a2denom, 1 / a2denom]}]) → list6
AI Drawing Prompt Reference
Create an interactive visual fraction addition tool: provide two input boxes for users to enter fractions; draw a movable bar for each fraction at the top and bottom, each subdivided according to its denominator; show fixed reference bars for the original fractions; compute the least common multiple of the denominators and draw a common grid below using that unit; animate the two bars sliding toward the center and merging into a single bar on the common grid to represent the sum; display step‑by‑step calculations — common denominator, addition, simplification — in a text panel beside the animation.
The prompt above was compiled from the original drawing commands and is for reference only.