Game on Gradients of Straight Lines

Game on Gradients of Straight Lines
Loading the math board and drawing, please wait…
2019-03-14 15:26
This example uses a game format to help students understand the gradients of straight lines. Key mathematical concepts include the equation of a line and its gradient. Using GeoGebra commands such as Line, If, Random, etc., students can dynamically explore the gradients of straight lines. Suitable for classroom assessment, remediation, or self-study.

GeoGebra Commands & Parameters

  1. Line(P, Q) → l_c
  2. If(FractionText[Slope[l_c]] ≟ "?", "undefined", FractionText[Slope[l_c]]) → actualgradient
  3. Random(-6, 6) → c
  4. Random(0, 6) → a
  5. If(gradient_{answer} ≟ Slope[l_c], true, If[gradient_{textanswer} ≟ actualgradient, true, false]) → AnswerCorrect
  6. Function((0 * x) - 1, -3, 3) → f
  7. Textfield(gradient_{answer}) → inputBox1
  8. Vector(Q, N) → vectorhorizontalrun
  9. Vector(N, P) → vectorverticalrun
  10. Midpoint(N, P) → M_{NP}
  11. Midpoint(N, Q) → M_{NQ}
  12. Text(horizontalrun) → texthorizontalrun
  13. Text(verticalrun) → textverticalrun
  14. Function(cos(x) + 2, 0, 31.416) → f_{racepath}
  15. Integral(f_{racepath}, 0, 31.416) → wavebody
  16. Corner(2, 4) → A
  17. Textfield(gradient_{textanswer}) → inputBox2
  18. Function(((-(x(l_c) / y(l_c))) * x) - z(l_c) / y(l_c), -8, 10) → f_{line}

AI Drawing Prompt Reference

Draw a coordinate plane with a straight line defined by two points, showing its gradient (or 'undefined' if vertical). Place two input boxes nearby for numeric and text answers, with feedback indicating correctness based on comparison with the actual gradient. Add horizontal and vertical vector arrows at the line's endpoints, labeled with their run and rise values. Below, include a wavy path with its area shaded or indicated. Arrange elements clearly for an interactive learning exercise.
The prompt above was compiled from the original drawing commands and is for reference only.