Points on Vertical or Horizontal Line Segments

Points on Vertical or Horizontal Line Segments
Loading the math board and drawing, please wait…
2017-03-07 07:42
This example demonstrates how to determine if a point lies on a vertical or horizontal line segment. Key mathematical concepts include line segments and coordinate geometry. Using GeoGebra commands such as Sample, Polygon, Max, Min, etc., dynamic geometric figures can be constructed. Suitable for students from middle school and above.

GeoGebra Commands & Parameters

  1. Sample(Sequence[-7, 7], 2, false) → listY, {5, -5}
  2. Sample(Sequence[-11, 11], 2, false) → listX, {2, 10}
  3. Polygon(A, C, B, D) → poly1, a, c, b, d
  4. Max(Join[{listX, listY}]) → maxAns
  5. Min(Join[{listX, listY}]) → minAns
  6. Append("?", Zip[Text[k], k, Sequence[minAns, maxAns]]) → listAns1
  7. RandomElement(listLetters) → listLetter, {"u", "v"}
  8. RandomElement({true, false}) → ansIsC, false
  9. Random(1, 2) → qtype, 2
  10. If(qtype ≟ 1, If[ansIsC, x(C), x(D)], x(C)) → ans1
  11. If(qtype ≟ 1, If[ansIsC, y(C), y(D)], y(D)) → ans2
  12. RandomElement(listColor) → textColor, "magenta"