Double Number Line to Coordinate Graph
Loading the math board and drawing, please wait…
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
If(quantity1 ≤ 0.2, 1000, 100) → roundingFactorDNL1valuesIf(quantity2 ≤ 0.2, 1000, 100) → roundingFactorDNL2valuesPoint(Ellipse[(3, gapDNL), (-3, gapDNL), (0, length)]) → LineYRtPoint(Segment[(0, If[y(LineYRt) > gapDNL, -1.15, (0.5 * gapDNL)]), (length - 0.5, If[y(LineYRt) > gapDNL, -1, (0.5 * gapDNL)])]) → SlidePtIf(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)]]) → LineYPtsSequence((k, 0), k, 0, length, interval) → LineXPtsSequence((x(Element[LineXPts, k]), y(Element[LineYPts, k])), k, 1, length + 1) → GridPtsSequence(Segment[Element[LineYPts, k], Element[GridPts, k]], k, 1, length + 1) → gridConnectHorizSequence(Segment[Element[LineXPts, k], Element[GridPts, k]], k, 1, length + 1) → gridConnectVertAngle(DNLyRefRt, (0, gapDNL), LineYRt) → αSequence(Rotate[Segment[Element[LineYPts, k] + (0, hashLength), Element[LineYPts, k] + (0, (-hashLength))], α, Element[LineYPts, k]], k, 1, length + 1) → lineYhashVector(LineYZero, Rotate[LineYRt + (interval, 0), α, LineYRt]) → rayYRefPoint(Ray[LineYZero, LineYRt]) → RayYEndPtVector(LineYZero, RayYEndPt) → rayYVector((0, 0), (length + Distance[LineYRt, RayYEndPt], 0)) → rayXSequence(Segment[Element[LineXPts, k] + (0, (-hashLength)), Element[LineXPts, k] + (0, hashLength)], k, 1, length + 1) → lineXhashSequence((k, 0), k, 0, length + 0.4, interval / hashMinor) → LineXPtsMinorIf(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)))]]) → LineYPtsMinorTextfield(q1labelForLengthAlwaysShow) → q1bLabelInputTextfield(quantity1) → q1aValueInputTextfield(quantity2) → q2aValueInputTextfield(q2labelForLengthAlwaysShow) → q2bLabelInputText("0", Element[LineYPts, 1] + (-0.1 - (0.6 * (length - x(LineYRt)) / length), 0.3 - (0.4 * (length - x(LineYRt)) / length))) → zeroDNL1Segment(If[y(LineYRt) > gapDNL, (x(SlidePt), functRatio(x(SlidePt))), SlidePt + (0, 1.4)], SlidePt - (0, 1.4 - (0.3 - y(SlidePt)))) → slideSegVertSequence(Segment[(0, j), (length + 0.5, j)], j, 1, length, interval) → gridLinesHorizSequence(Segment[(k, 0), (k, length + 0.5)], k, 1, length, interval) → gridLinesVertSegment((functYx(y(GridSlidePt)) - If[x(LineYRt) ≟ 0, 2, 0], y(GridSlidePt)), GridSlidePt) → slideSegHorizPolygon((-20, 1.5), (-4, 1.5), (-4, 100), (-20, 100)) → yellowBackgroundTable, f, g, h, iSequence(Segment[Element[LineXPtsMinor, k] + (0, ((-hashLength)) / 2), Element[LineXPtsMinor, k] + (0, hashLength / 2)], k, 0, ((length + 0.4) * hashMinor)) → lineXhashMinorSequence(Rotate[Segment[Element[LineYPtsMinor, k] + (0, hashLength / 2), Element[LineYPtsMinor, k] + (0, ((-hashLength)) / 2)], α, Element[LineYPtsMinor, k]], k, 0, ((length + 0.4) * hashMinor)) → lineYhashMinorIf(quantity2times4TextWidth > quantity1times4TextWidth, quantity2, quantity1) → quantityTableDNLmaxTextfield(locationXq1) → locationXq1InputTextfield(locationXq2) → locationXq2InputPolygon(Corner[q1label, 1] + (0, 0.15), Corner[q1label, 2] + (0, 0.15), Corner[q1label, 3], Corner[q1label, 4]) → label2YellowBackGraph, j, k, l, mSequence(Segment[(k, 0), (k, length + 0.3)], k, 0, length + 0.3, interval / hashMinor) → gridLinesVertMinorSequence(Segment[(0, j), (length + 0.3, j)], j, 0, length + 0.3, interval / hashMinor) → gridLinesHorizMinorSequence(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]) → LineXhashValuesSequence(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]) → LineYhashValuesRotateText(If[switchCk, q1labelForLengthAlwaysShow, q2labelForLengthAlwaysShow], α) → q2labelRotateSequence(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.