Centroid and Median in Polarized Population

Centroid and Median in Polarized Population
Loading the math board and drawing, please wait…
2016-11-11 11:17
This example demonstrates the concepts of centroid and median in a polarized population. By constructing a triangle, it illustrates the relationship between the centroid and median. It uses Segment and Text commands in GeoGebra, suitable for high school math education.

GeoGebra Commands & Parameters

  1. LaTeX("minimize_{x,y} f(x,y) = \sum_{i=1..n} \sqrt{(x-x_i)^2+(y-y_i)^2}= ") → txtlabel
  2. Segment(P_{0}, FP) → S_{0}
  3. Segment(P_{1}, FP) → S_{1}
  4. Segment(P_{2}, FP) → S_{2}
  5. Segment(P_{3}, FP) → S_{3}
  6. Segment(P_{4}, FP) → S_{4}
  7. Segment(P_{5}, FP) → S_{5}
  8. Segment(P_{6}, FP) → S_{6}
  9. Segment(P_{7}, FP) → S_{7}
  10. Segment(P_{8}, FP) → S_{8}
  11. Segment(P_{9}, FP) → S_{9}
  12. Segment(P_{10}, FP) → S_{10}
  13. Segment(P_{11}, FP) → S_{11}
  14. Segment(P_{12}, FP) → S_{12}
  15. Segment(P_{13}, FP) → S_{13}
  16. Segment(P_{14}, FP) → S_{14}
  17. Segment(P_{15}, FP) → S_{15}
  18. Segment(P_{16}, FP) → S_{16}
  19. Segment(P_{17}, FP) → S_{17}
  20. Segment(P_{18}, FP) → S_{18}
  21. Segment(P_{19}, FP) → S_{19}
  22. Segment(P_{20}, FP) → S_{20}
  23. Segment(P_{21}, FP) → S_{21}
  24. Segment(P_{22}, FP) → S_{22}
  25. Segment(P_{23}, FP) → S_{23}
  26. Segment(P_{24}, FP) → S_{24}
  27. Text(totLen, PTXT) → txtlen