Night Market Mahjong Probability and Geometry Demo

Night Market Mahjong Probability and Geometry Demo
Loading the math board and drawing, please wait…
2017-03-11 13:18
This example dynamically demonstrates probability distribution and geometric center calculation in a night market Mahjong scenario. It involves core math concepts like probability, geometric center, general quadrilaterals, 2D vectors, perimeter, and Riemann Sum. GeoGebra commands and objects such as Sequence, Element, KeepIf, Length, Intersection, Div, Translate are used in construction. Suitable for high school mathematics teaching, illustrating practical applications of probability statistics and geometric calculations.

GeoGebra Commands & Parameters

  1. Sequence(k, k, 1, 36) → list2
  2. Sequence(Random[1, 36 - k], k, 0, 14) → list1
  3. Element(list1, 1) → carte1
  4. KeepIf(x ≠ carte1, list2) → list3
  5. Element(list3, Element[list1, 2]) → carte2
  6. KeepIf(x ≠ carte2, list3) → list4
  7. Element(list4, Element[list1, 3]) → carte3
  8. KeepIf(x ≠ carte3, list4) → list5
  9. Element(list5, Element[list1, 4]) → carte4
  10. KeepIf(x ≠ carte4, list5) → list6
  11. Element(list6, Element[list1, 5]) → carte5
  12. KeepIf(x ≠ carte5, list6) → list7
  13. Element(list7, Element[list1, 6]) → carte6
  14. KeepIf(x ≠ carte6, list7) → list8
  15. Element(list8, Element[list1, 7]) → carte7
  16. KeepIf(x ≠ carte7, list8) → list9
  17. Element(list9, Element[list1, 8]) → carte8
  18. KeepIf(x ≠ carte8, list9) → list10
  19. Element(list10, Element[list1, 9]) → carte9
  20. KeepIf(x ≠ carte9, list10) → list11
  21. Element(list11, Element[list1, 10]) → carte10
  22. KeepIf(x ≠ carte10, list11) → list12
  23. Element(list12, Element[list1, 11]) → carte11
  24. KeepIf(x ≠ carte11, list12) → list13
  25. Element(list13, Element[list1, 12]) → carte12
  26. KeepIf(x ≠ carte12, list13) → list14
  27. Element(list14, Element[list1, 13]) → carte13
  28. KeepIf(x ≠ carte13, list14) → list15
  29. Element(list15, Element[list1, 14]) → carte14
  30. KeepIf(x ≠ carte14, list15) → list16
  31. Element(list16, Element[list1, 15]) → carte15
  32. Length(list1) → n
  33. Intersection(s1, list0) → t1
  34. Div(Length[t1], 6) → n1
  35. Intersection(s2, list0) → t2
  36. Intersection(s3, list0) → t3
  37. Intersection(s4, list0) → t4
  38. Intersection(s5, list0) → t5
  39. Intersection(s6, list0) → t6
  40. Intersection(s7, list0) → t7
  41. Intersection(s8, list0) → t8
  42. Intersection(s9, list0) → t9
  43. Intersection(s10, list0) → t10
  44. Intersection(s11, list0) → t11
  45. Intersection(s12, list0) → t12
  46. Intersection(s13, list0) → t13
  47. Intersection(s14, list0) → t14
  48. Div(Length[t2], 6) → n2
  49. Div(Length[t3], 6) → n3
  50. Div(Length[t4], 6) → n4
  51. Div(Length[t5], 6) → n5
  52. Div(Length[t6], 6) → n6
  53. Div(Length[t7], 6) → n7
  54. Div(Length[t8], 6) → n8
  55. Div(Length[t9], 6) → n9
  56. Div(Length[t10], 6) → n10
  57. Div(Length[t11], 6) → n11
  58. Div(Length[t12], 6) → n12
  59. Div(Length[t13], 6) → n13
  60. Div(Length[t14], 6) → n14
  61. Translate(Element[cartes, carte1], Vector[(0, 0), ((Mod[carte1 - 1, 6] * 2), (Div[carte1 - 1, 6] * 2.8)) + B_3]) → cart1
  62. Translate(Element[cartes, carte2], Vector[(0, 0), ((Mod[carte2 - 1, 6] * 2), (Div[carte2 - 1, 6] * 2.8)) + B_3]) → cart2
  63. Translate(Element[cartes, carte3], Vector[(0, 0), ((Mod[carte3 - 1, 6] * 2), (Div[carte3 - 1, 6] * 2.8)) + B_3]) → cart3
  64. Translate(Element[cartes, carte4], Vector[(0, 0), ((Mod[carte4 - 1, 6] * 2), (Div[carte4 - 1, 6] * 2.8)) + B_3]) → cart4
  65. Translate(Element[cartes, carte5], Vector[(0, 0), ((Mod[carte5 - 1, 6] * 2), (Div[carte5 - 1, 6] * 2.8)) + B_3]) → cart5
  66. Translate(Element[cartes, carte6], Vector[(0, 0), ((Mod[carte6 - 1, 6] * 2), (Div[carte6 - 1, 6] * 2.8)) + B_3]) → cart6
  67. Translate(Element[cartes, carte7], Vector[(0, 0), ((Mod[carte7 - 1, 6] * 2), (Div[carte7 - 1, 6] * 2.8)) + B_3]) → cart7
  68. Translate(Element[cartes, carte8], Vector[(0, 0), ((Mod[carte8 - 1, 6] * 2), (Div[carte8 - 1, 6] * 2.8)) + B_3]) → cart8
  69. Translate(Element[cartes, carte9], Vector[(0, 0), ((Mod[carte9 - 1, 6] * 2), (Div[carte9 - 1, 6] * 2.8)) + B_3]) → cart9
  70. Translate(Element[cartes, carte10], Vector[(0, 0), ((Mod[carte10 - 1, 6] * 2), (Div[carte10 - 1, 6] * 2.8)) + B_3]) → cart10
  71. Translate(Element[cartes, carte11], Vector[(0, 0), ((Mod[carte11 - 1, 6] * 2), (Div[carte11 - 1, 6] * 2.8)) + B_3]) → cart11
  72. Translate(Element[cartes, carte12], Vector[(0, 0), ((Mod[carte12 - 1, 6] * 2), (Div[carte12 - 1, 6] * 2.8)) + B_3]) → cart12
  73. Translate(Element[cartes, carte13], Vector[(0, 0), ((Mod[carte13 - 1, 6] * 2), (Div[carte13 - 1, 6] * 2.8)) + B_3]) → cart13
  74. Translate(Element[cartes, carte14], Vector[(0, 0), ((Mod[carte14 - 1, 6] * 2), (Div[carte14 - 1, 6] * 2.8)) + B_3]) → cart14
  75. Translate(Element[cartes, carte15], Vector[(0, 0), ((Mod[carte15 - 1, 6] * 2), (Div[carte15 - 1, 6] * 2.8)) + B_3]) → cart15

AI Drawing Prompt Reference

Demonstrate probability distribution and geometric center calculation in a night market Mahjong scenario. Generate 36 numbers, randomly select 15 as Mahjong tiles, and progressively exclude selected tiles to form multiple lists. Draw a polygon in the coordinate system, calculate midpoints of its vertices and edges, and obtain multiple intersection points to compute the geometric center, dynamically illustrating practical applications of probability statistics and geometric calculations.
The prompt above was compiled from the original drawing commands and is for reference only.