Gradient Game on Straight Lines
Loading the math board and drawing, please wait…
In collections
Introduction to Linear Functions and Graphs
Game Applets (2014 National ICT Presentation)
This example demonstrates the calculation and understanding of gradients of straight lines through an interactive game. Core math concepts include line gradients in coordinate geometry, vector and midpoint calculations. Construction highlights the use of GeoGebra commands/objects like Line, If, Random, Function, Textfield, Vector, Midpoint, Integral for dynamic line generation and gradient computation, suitable for formative assessment, remediation, or student self-study in middle school mathematics.
GeoGebra Commands & Parameters
Line(P, Q) → l_cIf(FractionText[Slope[l_c]] ≟ "?", "undefined", FractionText[Slope[l_c]]) → actualgradientRandom(-6, 6) → cRandom(0, 6) → aIf(gradient_{answer} ≟ Slope[l_c], true, If[gradient_{textanswer} ≟ actualgradient, true, false]) → AnswerCorrectFunction((0 * x) - 1, -3, 3) → fTextfield(gradient_{answer}) → inputBox1Vector(Q, N) → vectorhorizontalrunVector(N, P) → vectorverticalrunMidpoint(N, P) → M_{NP}Midpoint(N, Q) → M_{NQ}Text(horizontalrun) → texthorizontalrunText(verticalrun) → textverticalrunFunction(cos(x) + 2, 0, 31.416) → f_{racepath}Integral(f_{racepath}, 0, 31.416) → wavebodyCorner(2, 4) → ATextfield(gradient_{textanswer}) → inputBox2Function(((-(x(l_c) / y(l_c))) * x) - z(l_c) / y(l_c), -8, 10) → f_{line}
AI Drawing Prompt Reference
Draw a straight line and display its gradient. Randomly generate two points and connect them to form another line. Calculate the gradients of both lines and display the gradient of one line in a text box. Users need to guess the gradient of the other line, and the system will judge the correctness of the guess. At the same time, draw a function graph as the background and calculate the integral area of the function. Mark the two points and their midpoints in the figure, and display the horizontal and vertical vectors.
The prompt above was compiled from the original drawing commands and is for reference only.