Double Number Line to Coordinate Graph

Double Number Line to Coordinate Graph
Loading the math board and drawing, please wait…
2017-02-08 15:00
This example demonstrates the connection between a double number line and a coordinate graph. Enter ratio values and drag a blue point to visually observe how changes in the double number line map onto the coordinate graph. Core math concepts include coordinate geometry, function graphs, and linear functions. Construction highlights the use of GeoGebra commands like Point, Segment, LineYRt, Slider, and objects such as quantity1, quantity2, q1slideValue, q2slideValue, etc. Suitable for middle school and above learning functions and coordinate geometry.

GeoGebra Commands & Parameters

  1. If(quantity1 ≤ 0.2, 1000, 100) → roundingFactorDNL1values
  2. If(quantity2 ≤ 0.2, 1000, 100) → roundingFactorDNL2values
  3. Point(Ellipse[(3, gapDNL), (-3, gapDNL), (0, length)]) → LineYRt
  4. Point(Segment[(0, If[y(LineYRt) > gapDNL, -1.15, (0.5 * gapDNL)]), (length - 0.5, If[y(LineYRt) > gapDNL, -1, (0.5 * gapDNL)])]) → SlidePt
  5. If(x(LineYRt) < 0.1, Sequence[(0, j), j, 0, length, interval], Sequence[(k, functY(k)), k, 0, x(LineYRt), If[x(LineYRt) < 0.1, 0.1, (interval * x(LineYRt) / length)]]) → LineYPts
  6. Sequence((k, 0), k, 0, length, interval) → LineXPts
  7. Sequence((x(Element[LineXPts, k]), y(Element[LineYPts, k])), k, 1, length + 1) → GridPts
  8. Sequence(Segment[Element[LineYPts, k], Element[GridPts, k]], k, 1, length + 1) → gridConnectHoriz
  9. Sequence(Segment[Element[LineXPts, k], Element[GridPts, k]], k, 1, length + 1) → gridConnectVert
  10. Angle(DNLyRefRt, (0, gapDNL), LineYRt) → α
  11. Sequence(Rotate[Segment[Element[LineYPts, k] + (0, hashLength), Element[LineYPts, k] + (0, (-hashLength))], α, Element[LineYPts, k]], k, 1, length + 1) → lineYhash
  12. Vector(LineYZero, Rotate[LineYRt + (interval, 0), α, LineYRt]) → rayYRef
  13. Point(Ray[LineYZero, LineYRt]) → RayYEndPt
  14. Vector(LineYZero, RayYEndPt) → rayY
  15. Vector((0, 0), (length + Distance[LineYRt, RayYEndPt], 0)) → rayX
  16. Sequence(Segment[Element[LineXPts, k] + (0, (-hashLength)), Element[LineXPts, k] + (0, hashLength)], k, 1, length + 1) → lineXhash
  17. Sequence((k, 0), k, 0, length + 0.4, interval / hashMinor) → LineXPtsMinor
  18. If(x(LineYRt) < 0.1, Sequence[(0, j), j, 0, length + 0.4, interval / hashMinor], Sequence[(k, functY(k)), k, 0, x(LineYRt) + 0.4, If[x(LineYRt) < 0.1, 0.1, (interval * x(LineYRt) / ((length * hashMinor)))]]) → LineYPtsMinor
  19. Textfield(q1labelForLengthAlwaysShow) → q1bLabelInput
  20. Textfield(quantity1) → q1aValueInput
  21. Textfield(quantity2) → q2aValueInput
  22. Textfield(q2labelForLengthAlwaysShow) → q2bLabelInput
  23. Text("0", Element[LineYPts, 1] + (-0.1 - (0.6 * (length - x(LineYRt)) / length), 0.3 - (0.4 * (length - x(LineYRt)) / length))) → zeroDNL1
  24. Segment(If[y(LineYRt) > gapDNL, (x(SlidePt), functRatio(x(SlidePt))), SlidePt + (0, 1.4)], SlidePt - (0, 1.4 - (0.3 - y(SlidePt)))) → slideSegVert
  25. Sequence(Segment[(0, j), (length + 0.5, j)], j, 1, length, interval) → gridLinesHoriz
  26. Sequence(Segment[(k, 0), (k, length + 0.5)], k, 1, length, interval) → gridLinesVert
  27. Segment((functYx(y(GridSlidePt)) - If[x(LineYRt) ≟ 0, 2, 0], y(GridSlidePt)), GridSlidePt) → slideSegHoriz
  28. Polygon((-20, 1.5), (-4, 1.5), (-4, 100), (-20, 100)) → yellowBackgroundTable, f, g, h, i
  29. Sequence(Segment[Element[LineXPtsMinor, k] + (0, ((-hashLength)) / 2), Element[LineXPtsMinor, k] + (0, hashLength / 2)], k, 0, ((length + 0.4) * hashMinor)) → lineXhashMinor
  30. Sequence(Rotate[Segment[Element[LineYPtsMinor, k] + (0, hashLength / 2), Element[LineYPtsMinor, k] + (0, ((-hashLength)) / 2)], α, Element[LineYPtsMinor, k]], k, 0, ((length + 0.4) * hashMinor)) → lineYhashMinor
  31. If(quantity2times4TextWidth > quantity1times4TextWidth, quantity2, quantity1) → quantityTableDNLmax
  32. Textfield(locationXq1) → locationXq1Input
  33. Textfield(locationXq2) → locationXq2Input
  34. Polygon(Corner[q1label, 1] + (0, 0.15), Corner[q1label, 2] + (0, 0.15), Corner[q1label, 3], Corner[q1label, 4]) → label2YellowBackGraph, j, k, l, m
  35. Sequence(Segment[(k, 0), (k, length + 0.3)], k, 0, length + 0.3, interval / hashMinor) → gridLinesVertMinor
  36. Sequence(Segment[(0, j), (length + 0.3, j)], j, 0, length + 0.3, interval / hashMinor) → gridLinesHorizMinor
  37. Sequence(Text["" + ((k * quantity1temp)), Element[LineXPts, k + 1] + ((-If[(k * quantity1temp) < 10, 0.1, If[(k * quantity1temp) < 100, 0.2, 0.34]]) - If[(k * quantity1temp) > floor((k * quantity1temp)), 0.2, 0], -0.5)], k, 1, If[¬showValuesDNL1bCk, 1, length - interval]) → LineXhashValues
  38. Sequence(Text["" + ((k * quantity2temp)), Element[LineYPts, k + 1] + (-0.1 - If[(k * quantity2temp) > floor((k * quantity2temp)), 0.2, 0] - (If[(k * quantity2temp) < 10, 0.1, If[(k * quantity2temp) < 100, 0.6, 1.2]] * (length - x(LineYRt) + If[(k * quantity2temp) < 10, 1 + (0.26 * α / °), If[(k * quantity2temp) < 100, 1 + (0.0099 * α / °), If[(k * quantity2temp) < 999.9, 1 - (0.0175 * α / °), If[(k * quantity2temp) > 999.9, 1 - (0.007 * α / °), 0]]]]) / length), 0.3 - (0.4 * (length - x(LineYRt)) / length))], k, 1, If[¬showValuesDNL2CkA, 1, length - interval]) → LineYhashValues
  39. RotateText(If[switchCk, q1labelForLengthAlwaysShow, q2labelForLengthAlwaysShow], α) → q2labelRotate
  40. Sequence(Text["(" + ((k * quantity1temp)) + ", " + ((k * quantity2temp)) + ")", Element[GridPts, k + 1] + (0.1, -0.2)], k, 1, length - 1, interval) → coordsText

AI Drawing Prompt Reference

Draw a connection between a double number line and a coordinate graph. Start by drawing a double number line, then plot the corresponding points on the coordinate graph based on the values on the double number line. Use two sliders to represent the values on the double number line, and observe how the points move on the coordinate graph when you drag the sliders. Add scales and labels to both the double number line and the coordinate graph to clearly show the correspondence between them.
The prompt above was compiled from the original drawing commands and is for reference only.