Two Fraction Bars

Two Fraction Bars
Loading the math board and drawing, please wait…
2018-05-16 12:29
This example demonstrates two fraction bars. By adjusting the numerator and denominator values, one can observe the relationship between fractions. Key mathematical concepts include fractions, ratios, and geometric construction. It uses GeoGebra commands such as Sequence and If for construction. Suitable for high-grade elementary or junior high school students to learn about fractions.

GeoGebra Commands & Parameters

  1. Sequence(Polygon[(Cx + (len1 * (k - 1)), Cy + Move1), (Cx + (len1 * (k - 1)), Cy + Wid + Move1), (Cx + (len1 * k), Cy + Wid + Move1), (Cx + (len1 * k), Cy + Move1)], k, 1, D1) → RecD1
  2. Sequence(Polygon[(Cx + (len1 * (k - 1)), Cy + Move1), (Cx + (len1 * (k - 1)), Cy + Wid + Move1), (Cx + (len1 * k), Cy + Wid + Move1), (Cx + (len1 * k), Cy + Move1)], k, 1, N1) → RecN1
  3. If(ShowChi, "滑桿2", "Slider 2") → Move2Text
  4. Sequence(Polygon[(Cx + (len2 * (k - 1)), Cy + Sp + Move2), (Cx + (len2 * (k - 1)), Cy + Wid + Sp + Move2), (Cx + (len2 * k), Cy + Wid + Sp + Move2), (Cx + (len2 * k), Cy + Sp + Move2)], k, 1, D2) → RecD2
  5. Sequence(Polygon[(Cx + (len2 * (k - 1)), Cy + Sp + Move2), (Cx + (len2 * (k - 1)), Cy + Wid + Sp + Move2), (Cx + (len2 * k), Cy + Wid + Sp + Move2), (Cx + (len2 * k), Cy + Sp + Move2)], k, 1, N2) → RecN2
  6. Sequence(Polygon[(Cx + (len3 * (k - 1)), Cy + (2 * Sp) + Move3), (Cx + (len3 * (k - 1)), Cy + Wid + (2 * Sp) + Move3), (Cx + (len3 * k), Cy + Wid + (2 * Sp) + Move3), (Cx + (len3 * k), Cy + (2 * Sp) + Move3)], k, 1, D3) → RecD3
  7. Sequence(Polygon[(Cx + (len3 * (k - 1)), Cy + (2 * Sp) + Move3), (Cx + (len3 * (k - 1)), Cy + Wid + (2 * Sp) + Move3), (Cx + (len3 * k), Cy + Wid + (2 * Sp) + Move3), (Cx + (len3 * k), Cy + (2 * Sp) + Move3)], k, 1, N3) → RecN3
  8. Sequence(Polygon[(Cx + (len4 * (k - 1)), Cy + (3 * Sp) + Move4), (Cx + (len4 * (k - 1)), Cy + Wid + (3 * Sp) + Move4), (Cx + (len4 * k), Cy + Wid + (3 * Sp) + Move4), (Cx + (len4 * k), Cy + (3 * Sp) + Move4)], k, 1, D4) → RecD4
  9. Sequence(Polygon[(Cx + (len4 * (k - 1)), Cy + (3 * Sp) + Move4), (Cx + (len4 * (k - 1)), Cy + Wid + (3 * Sp) + Move4), (Cx + (len4 * k), Cy + Wid + (3 * Sp) + Move4), (Cx + (len4 * k), Cy + (3 * Sp) + Move4)], k, 1, N4) → RecN4
  10. If(ShowChi, "本課業可顯示分母是2至12的真分數。", "This applet can represent fractions with denominators ranging from 2 to 12.") → Note1
  11. If(ShowChi, "可用滑桿移動分數條。", "Move the fraction bars by using the sliders.") → Note2
  12. If(ShowChi, "滑桿1", "Slider 1") → Move1Text
  13. If(ShowChi, "滑桿3", "Slider 3") → Move3Text
  14. If(ShowChi, "滑桿4", "Slider 4") → Move4Text
  15. If(ShowChi, "分子", "N") → TextN4
  16. If(ShowChi, "分母", "D") → TextD4
  17. If(ShowChi, "分子", "N") → TextN3
  18. If(ShowChi, "分母", "D") → TextD3
  19. If(ShowChi, "分子", "N") → TextN2
  20. If(ShowChi, "分母", "D") → TextD2
  21. If(ShowChi, "分子", "N") → TextN1
  22. If(ShowChi, "分母", "D") → TextD1
  23. If(ShowChi, "顯示 / 隱藏分數", "Show / Hide Fractions") → TextShowFrac
  24. If(ShowChi, "兩個分數的圖示 (著色部份佔全圖的幾分之幾)", "Drawings of two fractions (Coloured part(s) of the whole figure)") → Title

AI Drawing Prompt Reference

Draw two fraction bars composed of multiple rectangles, where the number of rectangles is controlled by sliders. Each rectangle represents a part of the fraction, and adjusting the sliders changes the numerator and denominator, demonstrating the relationship between fractions. The bars are separated by intervals, creating a geometric construction appearance.
The prompt above was compiled from the original drawing commands and is for reference only.