A Fraction of a Set of Objects
Loading the math board and drawing, please wait…
This example helps students understand the concept of fractions by calculating a fraction of a set of objects. Key mathematical concepts include fractions and sets. It utilizes commands such as DynamicCoordinates, DivisorsList, Factors, Sequence, Polygon, Element, If, and Textfield in GeoGebra. Suitable for upper elementary or lower middle school students to learn about fractions and their applications.
GeoGebra Commands & Parameters
DynamicCoordinates(P0, If[x(P0) < 2, 2, If[x(P0) > 12, 12, round(x(P0))]], If[y(P0) > -1, -1, If[y(P0) < -6, -6, round(y(P0))]]) → PDivisorsList(n) → nfactorsFactors(n) →DivisorsList(m) → mfactorsFactors(m) →Sequence(Segment[((i * m / Element[mfactors, mdiv]), 0), ((i * m / Element[mfactors, mdiv]), (-n))], i, 1, Element[mfactors, mdiv] - 1) → l2Sequence(Segment[(0, ((-i) * n / Element[nfactors, ndiv])), (m, ((-i) * n / Element[nfactors, ndiv]))], i, 1, Element[nfactors, ndiv] - 1) → l3Polygon({(b - b, 0), (b, 0), (b, (-h)), (b - b, (-h))}) → q101Polygon({((2 * b) - b, 0), ((2 * b), 0), ((2 * b), (-h)), ((2 * b) - b, (-h))}) → q102Polygon({((3 * b) - b, 0), ((3 * b), 0), ((3 * b), (-h)), ((3 * b) - b, (-h))}) → q103Polygon({((4 * b) - b, 0), ((4 * b), 0), ((4 * b), (-h)), ((4 * b) - b, (-h))}) → q104Polygon({((5 * b) - b, 0), ((5 * b), 0), ((5 * b), (-h)), ((5 * b) - b, (-h))}) → q105Polygon({((6 * b) - b, 0), ((6 * b), 0), ((6 * b), (-h)), ((6 * b) - b, (-h))}) → q106Polygon({((7 * b) - b, 0), ((7 * b), 0), ((7 * b), (-h)), ((7 * b) - b, (-h))}) → q107Polygon({((8 * b) - b, 0), ((8 * b), 0), ((8 * b), (-h)), ((8 * b) - b, (-h))}) → q108Polygon({((9 * b) - b, 0), ((9 * b), 0), ((9 * b), (-h)), ((9 * b) - b, (-h))}) → q109Polygon({(b - b, (-h)), (b, (-h)), (b, (-2 * h)), (b - b, (-2 * h))}) → q201Polygon({((2 * b) - b, (-h)), ((2 * b), (-h)), ((2 * b), (-2 * h)), ((2 * b) - b, (-2 * h))}) → q202Polygon({((3 * b) - b, (-h)), ((3 * b), (-h)), ((3 * b), (-2 * h)), ((3 * b) - b, (-2 * h))}) → q203Polygon({((4 * b) - b, (-h)), ((4 * b), (-h)), ((4 * b), (-2 * h)), ((4 * b) - b, (-2 * h))}) → q204Polygon({((5 * b) - b, (-h)), ((5 * b), (-h)), ((5 * b), (-2 * h)), ((5 * b) - b, (-2 * h))}) → q205Polygon({((6 * b) - b, (-h)), ((6 * b), (-h)), ((6 * b), (-2 * h)), ((6 * b) - b, (-2 * h))}) → q206Polygon({((7 * b) - b, (-h)), ((7 * b), (-h)), ((7 * b), (-2 * h)), ((7 * b) - b, (-2 * h))}) → q207Polygon({((8 * b) - b, (-h)), ((8 * b), (-h)), ((8 * b), (-2 * h)), ((8 * b) - b, (-2 * h))}) → q208Polygon({((9 * b) - b, (-h)), ((9 * b), (-h)), ((9 * b), (-2 * h)), ((9 * b) - b, (-2 * h))}) → q209Polygon({(b - b, (-2 * h)), (b, (-2 * h)), (b, (-3 * h)), (b - b, (-3 * h))}) → q301Polygon({((2 * b) - b, (-2 * h)), ((2 * b), (-2 * h)), ((2 * b), (-3 * h)), ((2 * b) - b, (-3 * h))}) → q302Polygon({((3 * b) - b, (-2 * h)), ((3 * b), (-2 * h)), ((3 * b), (-3 * h)), ((3 * b) - b, (-3 * h))}) → q303Polygon({((4 * b) - b, (-2 * h)), ((4 * b), (-2 * h)), ((4 * b), (-3 * h)), ((4 * b) - b, (-3 * h))}) → q304Polygon({((5 * b) - b, (-2 * h)), ((5 * b), (-2 * h)), ((5 * b), (-3 * h)), ((5 * b) - b, (-3 * h))}) → q305Polygon({((6 * b) - b, (-2 * h)), ((6 * b), (-2 * h)), ((6 * b), (-3 * h)), ((6 * b) - b, (-3 * h))}) → q306Polygon({((7 * b) - b, (-2 * h)), ((7 * b), (-2 * h)), ((7 * b), (-3 * h)), ((7 * b) - b, (-3 * h))}) → q307Polygon({((8 * b) - b, (-2 * h)), ((8 * b), (-2 * h)), ((8 * b), (-3 * h)), ((8 * b) - b, (-3 * h))}) → q308Polygon({((9 * b) - b, (-2 * h)), ((9 * b), (-2 * h)), ((9 * b), (-3 * h)), ((9 * b) - b, (-3 * h))}) → q309Polygon({(b - b, (-3 * h)), (b, (-3 * h)), (b, (-4 * h)), (b - b, (-4 * h))}) → q401Polygon({((2 * b) - b, (-3 * h)), ((2 * b), (-3 * h)), ((2 * b), (-4 * h)), ((2 * b) - b, (-4 * h))}) → q402Polygon({((3 * b) - b, (-3 * h)), ((3 * b), (-3 * h)), ((3 * b), (-4 * h)), ((3 * b) - b, (-4 * h))}) → q403Polygon({((4 * b) - b, (-3 * h)), ((4 * b), (-3 * h)), ((4 * b), (-4 * h)), ((4 * b) - b, (-4 * h))}) → q404Polygon({((5 * b) - b, (-3 * h)), ((5 * b), (-3 * h)), ((5 * b), (-4 * h)), ((5 * b) - b, (-4 * h))}) → q405Polygon({((6 * b) - b, (-3 * h)), ((6 * b), (-3 * h)), ((6 * b), (-4 * h)), ((6 * b) - b, (-4 * h))}) → q406Polygon({((7 * b) - b, (-3 * h)), ((7 * b), (-3 * h)), ((7 * b), (-4 * h)), ((7 * b) - b, (-4 * h))}) → q407Polygon({((8 * b) - b, (-3 * h)), ((8 * b), (-3 * h)), ((8 * b), (-4 * h)), ((8 * b) - b, (-4 * h))}) → q408Polygon({((9 * b) - b, (-3 * h)), ((9 * b), (-3 * h)), ((9 * b), (-4 * h)), ((9 * b) - b, (-4 * h))}) → q409Polygon({(b - b, (-4 * h)), (b, (-4 * h)), (b, (-5 * h)), (b - b, (-5 * h))}) → q501Polygon({((2 * b) - b, (-4 * h)), ((2 * b), (-4 * h)), ((2 * b), (-5 * h)), ((2 * b) - b, (-5 * h))}) → q502Polygon({((3 * b) - b, (-4 * h)), ((3 * b), (-4 * h)), ((3 * b), (-5 * h)), ((3 * b) - b, (-5 * h))}) → q503Polygon({((4 * b) - b, (-4 * h)), ((4 * b), (-4 * h)), ((4 * b), (-5 * h)), ((4 * b) - b, (-5 * h))}) → q504Polygon({((5 * b) - b, (-4 * h)), ((5 * b), (-4 * h)), ((5 * b), (-5 * h)), ((5 * b) - b, (-5 * h))}) → q505Polygon({((6 * b) - b, (-4 * h)), ((6 * b), (-4 * h)), ((6 * b), (-5 * h)), ((6 * b) - b, (-5 * h))}) → q506Polygon({((7 * b) - b, (-4 * h)), ((7 * b), (-4 * h)), ((7 * b), (-5 * h)), ((7 * b) - b, (-5 * h))}) → q507Polygon({((8 * b) - b, (-4 * h)), ((8 * b), (-4 * h)), ((8 * b), (-5 * h)), ((8 * b) - b, (-5 * h))}) → q508Polygon({((9 * b) - b, (-4 * h)), ((9 * b), (-4 * h)), ((9 * b), (-5 * h)), ((9 * b) - b, (-5 * h))}) → q509Polygon({(b - b, (-5 * h)), (b, (-5 * h)), (b, (-6 * h)), (b - b, (-6 * h))}) → q601Polygon({((2 * b) - b, (-5 * h)), ((2 * b), (-5 * h)), ((2 * b), (-6 * h)), ((2 * b) - b, (-6 * h))}) → q602Polygon({((3 * b) - b, (-5 * h)), ((3 * b), (-5 * h)), ((3 * b), (-6 * h)), ((3 * b) - b, (-6 * h))}) → q603Polygon({((4 * b) - b, (-5 * h)), ((4 * b), (-5 * h)), ((4 * b), (-6 * h)), ((4 * b) - b, (-6 * h))}) → q604Polygon({((5 * b) - b, (-5 * h)), ((5 * b), (-5 * h)), ((5 * b), (-6 * h)), ((5 * b) - b, (-6 * h))}) → q605Polygon({((6 * b) - b, (-5 * h)), ((6 * b), (-5 * h)), ((6 * b), (-6 * h)), ((6 * b) - b, (-6 * h))}) → q606Polygon({((7 * b) - b, (-5 * h)), ((7 * b), (-5 * h)), ((7 * b), (-6 * h)), ((7 * b) - b, (-6 * h))}) → q607Polygon({((8 * b) - b, (-5 * h)), ((8 * b), (-5 * h)), ((8 * b), (-6 * h)), ((8 * b) - b, (-6 * h))}) → q608Polygon({((9 * b) - b, (-5 * h)), ((9 * b), (-5 * h)), ((9 * b), (-6 * h)), ((9 * b) - b, (-6 * h))}) → q609Polygon({((10 * b) - b, 0), ((10 * b), 0), ((10 * b), (-h)), ((10 * b) - b, (-h))}) → q110Polygon({((11 * b) - b, 0), ((11 * b), 0), ((11 * b), (-h)), ((11 * b) - b, (-h))}) → q111Polygon({((12 * b) - b, 0), ((12 * b), 0), ((12 * b), (-h)), ((12 * b) - b, (-h))}) → q112Polygon({((10 * b) - b, (-h)), ((10 * b), (-h)), ((10 * b), (-2 * h)), ((10 * b) - b, (-2 * h))}) → q210Polygon({((11 * b) - b, (-h)), ((11 * b), (-h)), ((11 * b), (-2 * h)), ((11 * b) - b, (-2 * h))}) → q211Polygon({((12 * b) - b, (-h)), ((12 * b), (-h)), ((12 * b), (-2 * h)), ((12 * b) - b, (-2 * h))}) → q212Polygon({((10 * b) - b, (-2 * h)), ((10 * b), (-2 * h)), ((10 * b), (-3 * h)), ((10 * b) - b, (-3 * h))}) → q310Polygon({((11 * b) - b, (-2 * h)), ((11 * b), (-2 * h)), ((11 * b), (-3 * h)), ((11 * b) - b, (-3 * h))}) → q311Polygon({((12 * b) - b, (-2 * h)), ((12 * b), (-2 * h)), ((12 * b), (-3 * h)), ((12 * b) - b, (-3 * h))}) → q312Polygon({((10 * b) - b, (-3 * h)), ((10 * b), (-3 * h)), ((10 * b), (-4 * h)), ((10 * b) - b, (-4 * h))}) → q410Polygon({((11 * b) - b, (-3 * h)), ((11 * b), (-3 * h)), ((11 * b), (-4 * h)), ((11 * b) - b, (-4 * h))}) → q411Polygon({((12 * b) - b, (-3 * h)), ((12 * b), (-3 * h)), ((12 * b), (-4 * h)), ((12 * b) - b, (-4 * h))}) → q412Polygon({((10 * b) - b, (-4 * h)), ((10 * b), (-4 * h)), ((10 * b), (-5 * h)), ((10 * b) - b, (-5 * h))}) → q510Polygon({((11 * b) - b, (-4 * h)), ((11 * b), (-4 * h)), ((11 * b), (-5 * h)), ((11 * b) - b, (-5 * h))}) → q511Polygon({((12 * b) - b, (-4 * h)), ((12 * b), (-4 * h)), ((12 * b), (-5 * h)), ((12 * b) - b, (-5 * h))}) → q512Polygon({((10 * b) - b, (-5 * h)), ((10 * b), (-5 * h)), ((10 * b), (-6 * h)), ((10 * b) - b, (-6 * h))}) → q610Polygon({((11 * b) - b, (-5 * h)), ((11 * b), (-5 * h)), ((11 * b), (-6 * h)), ((11 * b) - b, (-6 * h))}) → q611Polygon({((12 * b) - b, (-5 * h)), ((12 * b), (-5 * h)), ((12 * b), (-6 * h)), ((12 * b) - b, (-6 * h))}) → q612Element(mfactors, mdiv) → numcolumnsElement(nfactors, ndiv) → numrowsPolygon({(0, 0), (x(P), 0), P, (0, y(P))}) → q1If(response1 ≟ "", false, true) → input1If(response2 ≟ "", false, true) → input2If(response1 ≟ ans1, true, false) → correct1If(response2 ≟ ans2, true, false) → correct2Textfield(response2) → InputBox2Textfield(response1) → InputBox1DynamicCoordinates(P0_{1}, If[x(P0_{1}) < 2, 2, If[x(P0_{1}) > 12, 12, round(x(P0_{1}))]], If[y(P0_{1}) > -1, -1, If[y(P0_{1}) < -6, -6, round(y(P0_{1}))]]) → P_{1}DivisorsList(n_{1}) → nfactors_{1}Factors(n_{1}) →DivisorsList(m_{1}) → mfactors_{1}Factors(m_{1}) →Sequence(Translate[pic1, (i - 1, -1)], i, 1, m) → l1Sequence(Translate[l1, (0, (-j) + 1)], j, 1, n) → m1
AI Drawing Prompt Reference
Draw a coordinate system with a dynamic point near the origin, whose x and y coordinates are constrained between 2 and 12 and -1 and -6, respectively. Based on a number n, draw horizontal line segments for each of its divisors, extending downward from the x-axis at corresponding positions. Based on another number m, draw vertical line segments for each of its divisors, extending rightward from the y-axis at corresponding positions. On the x-axis, draw 10 rectangles from b to 9b, each with height h. Below the y-axis, draw 10 rectangles from -2h to -5h, each with width b. All rectangles are aligned parallel to the x-axis or y-axis.
The prompt above was compiled from the original drawing commands and is for reference only.