Double Number Line Ratio Construction

Double Number Line Ratio Construction
Loading the math board and drawing, please wait…
2020-08-24 13:59
This example demonstrates the creation of a double number line using ratio relationships, providing a visual tool for comparing values proportionally. Key mathematical concepts include ratios, number lines, percentages, and numerical correspondence, making it ideal for foundational lessons in middle or high school mathematics. The construction leverages GeoGebra commands such as If, Point, Segment, Sequence, and Vector, with objects like sliders (q1, q2) and lines (lineDNL1, lineDNL2) enabling interactive adjustments. It is suited for teaching proportional reasoning, coordinate geometry basics, and dynamic graphing techniques in educational settings.

GeoGebra Commands & Parameters

  1. If(q2 < 100, 100, If[q2 < 500, 10, 1]) → roundingFactorDNL2values
  2. If(q2 ≥ 0 ∧ q2 ≤ 0.1, 0.1, round((roundingFactorDNL2values * q2)) / roundingFactorDNL2values) → q2rnd
  3. Point(Segment[(0, 0.85), (4.3, 0.85)]) → slidePt
  4. If(q1 < 100, 100, If[q1 < 500, 10, 1]) → roundingFactorDNL1values
  5. If(q1 ≥ 0 ∧ q1 ≤ 0.1, 0.1, If[q1 < 25, round((100 * q1)) / 100, If[q1 < 75, round((10 * q1)) / 10, If[q1 > 100, 100, round(q1)]]]) → q1rnd
  6. Segment(A, DNL2ArrowPt) → lineDNL1
  7. Segment(B, DNL1ArrowPt) → lineDNL2
  8. Textfield(q1labelForLengthAlwaysShow) → q1blabelInput
  9. Textfield(q2labelForLengthAlwaysShow) → q2blabelInput
  10. Textfield(q1) → q1avalueInput
  11. Textfield(q2) → q2avalueInput
  12. Segment(slidePt + (0, 1.7), slidePt - (0, 1.75)) → slideSeg
  13. Sequence(((length * k), h), k, 0, 4) → hashMajorDNL2
  14. Sequence(((length * k), 0), k, 0, 4) → hashMajorDNL1
  15. Textfield(locationXq1) → locationXq1Input
  16. Textfield(locationXq2) → locationXq2Input
  17. Sequence((k, 0), k, 0, 4.3, length / hatchMinor) → hashMinorDNL1
  18. Sequence((k, h), k, 0, 4.3, length / hatchMinor) → hashMinorDNL2
  19. Sequence(Text[(p * q2), ((length * p) + xOffSet, y(A) - (1.7 * yOffSet))], p, 2, 4) → hashMarkValuesTextDNL2
  20. Sequence(Text[(q * q1), ((length * q) + topxOffSet, y(B) + yOffSet)], q, 2, 4) → hashMarkValuesTextDNL1
  21. Text(0, (x(A) - 0.035, y(A) - (1.7 * yOffSet))) → zeroDNL2
  22. Text(0, (x(B) - 0.035, y(B) + yOffSet)) → zeroDNL1
  23. Vector(instructionsArrowsPt, (1.4187, -2.68926)) → instructionsArrow2_{legacy}
  24. Vector(instructionsArrowsPt, (0.28383, -2.65534)) → instructionsArrow1_{legacy}
  25. Mirror(instructionsArrow1_{legacy}, x = x(instructionsArrowsPt)) → instructionsArrow3_{legacy}
  26. Mirror(instructionsArrow2_{legacy}, x = x(instructionsArrowsPt)) → instructionsArrow4_{legacy}

AI Drawing Prompt Reference

Draw two parallel number lines to represent ratio relationships. The first line should have markings from 0 to 4, while the second line adjusts its tick density based on the value of slider q2 and displays corresponding values. Use slider q1 to adjust the position of markings on the first line and show the corresponding values. Add tick marks and value labels to both lines for proportional comparison.
The prompt above was compiled from the original drawing commands and is for reference only.