Slope from Two Points by cemccourseware

Slope from Two Points by cemccourseware
Loading the math board and drawing, please wait…
2019-02-08 01:00
This example demonstrates drawing a line through two points and calculating its slope, involving core math concepts of coordinate geometry. It uses GeoGebra commands like UnicodeToLetter, Random, If, LaTeX, Textfield. Suitable for high school students learning coordinate geometry.

GeoGebra Commands & Parameters

  1. UnicodeToLetter(10007) → xmark
  2. UnicodeToLetter(10003) → cmark
  3. Random(-15, 15) → x1
  4. Random(-15, 14) → x2temp
  5. If(x2temp ≟ x1, x2temp + 1, x2temp) → x2
  6. Random(-15, 15) → y1
  7. Random(-15, 14) → y2temp
  8. If(y2temp ≟ y1, y2temp + 1, y2temp) → y2
  9. LaTeX((((((((("\text{Point A } (" * x1) * ",") * y1) * ") \text{ and Point B } (") * x2) * ",") * y2) * ")")) → labelPoints
  10. Textfield(textX1) → ansBoxX1
  11. Textfield(textX2) → ansBoxX2
  12. Textfield(textY1) → ansBoxY1
  13. Textfield(textY2) → ansBoxY2
  14. Textfield(textRun) → ansBoxRun
  15. Textfield(textRise) → ansBoxRise
  16. LaTeX((((((((((xmark * "\hspace{15}\dfrac{") * y2) * "-(") * y1) * ")}{") * x2) * "-(") * x1) * ")}")) → feedbackPart1
  17. LaTeX((((((xmark * "\hspace{15}\dfrac{") * (userY2 - userY1)) * "}{") * (userX2 - userX1)) * "}")) → feedbackPart2
  18. LaTeX("\text{\textbf{Question: }What is the slope of the line passing through the two given points?\\\textbf{Instructions: }Use the slope formula to calculate the slope.}") → TEXT