Night Market Mahjong Probability and Geometry Demo
Loading the math board and drawing, please wait…
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
Sequence(k, k, 1, 36) → list2Sequence(Random[1, 36 - k], k, 0, 14) → list1Element(list1, 1) → carte1KeepIf(x ≠ carte1, list2) → list3Element(list3, Element[list1, 2]) → carte2KeepIf(x ≠ carte2, list3) → list4Element(list4, Element[list1, 3]) → carte3KeepIf(x ≠ carte3, list4) → list5Element(list5, Element[list1, 4]) → carte4KeepIf(x ≠ carte4, list5) → list6Element(list6, Element[list1, 5]) → carte5KeepIf(x ≠ carte5, list6) → list7Element(list7, Element[list1, 6]) → carte6KeepIf(x ≠ carte6, list7) → list8Element(list8, Element[list1, 7]) → carte7KeepIf(x ≠ carte7, list8) → list9Element(list9, Element[list1, 8]) → carte8KeepIf(x ≠ carte8, list9) → list10Element(list10, Element[list1, 9]) → carte9KeepIf(x ≠ carte9, list10) → list11Element(list11, Element[list1, 10]) → carte10KeepIf(x ≠ carte10, list11) → list12Element(list12, Element[list1, 11]) → carte11KeepIf(x ≠ carte11, list12) → list13Element(list13, Element[list1, 12]) → carte12KeepIf(x ≠ carte12, list13) → list14Element(list14, Element[list1, 13]) → carte13KeepIf(x ≠ carte13, list14) → list15Element(list15, Element[list1, 14]) → carte14KeepIf(x ≠ carte14, list15) → list16Element(list16, Element[list1, 15]) → carte15Length(list1) → nIntersection(s1, list0) → t1Div(Length[t1], 6) → n1Intersection(s2, list0) → t2Intersection(s3, list0) → t3Intersection(s4, list0) → t4Intersection(s5, list0) → t5Intersection(s6, list0) → t6Intersection(s7, list0) → t7Intersection(s8, list0) → t8Intersection(s9, list0) → t9Intersection(s10, list0) → t10Intersection(s11, list0) → t11Intersection(s12, list0) → t12Intersection(s13, list0) → t13Intersection(s14, list0) → t14Div(Length[t2], 6) → n2Div(Length[t3], 6) → n3Div(Length[t4], 6) → n4Div(Length[t5], 6) → n5Div(Length[t6], 6) → n6Div(Length[t7], 6) → n7Div(Length[t8], 6) → n8Div(Length[t9], 6) → n9Div(Length[t10], 6) → n10Div(Length[t11], 6) → n11Div(Length[t12], 6) → n12Div(Length[t13], 6) → n13Div(Length[t14], 6) → n14Translate(Element[cartes, carte1], Vector[(0, 0), ((Mod[carte1 - 1, 6] * 2), (Div[carte1 - 1, 6] * 2.8)) + B_3]) → cart1Translate(Element[cartes, carte2], Vector[(0, 0), ((Mod[carte2 - 1, 6] * 2), (Div[carte2 - 1, 6] * 2.8)) + B_3]) → cart2Translate(Element[cartes, carte3], Vector[(0, 0), ((Mod[carte3 - 1, 6] * 2), (Div[carte3 - 1, 6] * 2.8)) + B_3]) → cart3Translate(Element[cartes, carte4], Vector[(0, 0), ((Mod[carte4 - 1, 6] * 2), (Div[carte4 - 1, 6] * 2.8)) + B_3]) → cart4Translate(Element[cartes, carte5], Vector[(0, 0), ((Mod[carte5 - 1, 6] * 2), (Div[carte5 - 1, 6] * 2.8)) + B_3]) → cart5Translate(Element[cartes, carte6], Vector[(0, 0), ((Mod[carte6 - 1, 6] * 2), (Div[carte6 - 1, 6] * 2.8)) + B_3]) → cart6Translate(Element[cartes, carte7], Vector[(0, 0), ((Mod[carte7 - 1, 6] * 2), (Div[carte7 - 1, 6] * 2.8)) + B_3]) → cart7Translate(Element[cartes, carte8], Vector[(0, 0), ((Mod[carte8 - 1, 6] * 2), (Div[carte8 - 1, 6] * 2.8)) + B_3]) → cart8Translate(Element[cartes, carte9], Vector[(0, 0), ((Mod[carte9 - 1, 6] * 2), (Div[carte9 - 1, 6] * 2.8)) + B_3]) → cart9Translate(Element[cartes, carte10], Vector[(0, 0), ((Mod[carte10 - 1, 6] * 2), (Div[carte10 - 1, 6] * 2.8)) + B_3]) → cart10Translate(Element[cartes, carte11], Vector[(0, 0), ((Mod[carte11 - 1, 6] * 2), (Div[carte11 - 1, 6] * 2.8)) + B_3]) → cart11Translate(Element[cartes, carte12], Vector[(0, 0), ((Mod[carte12 - 1, 6] * 2), (Div[carte12 - 1, 6] * 2.8)) + B_3]) → cart12Translate(Element[cartes, carte13], Vector[(0, 0), ((Mod[carte13 - 1, 6] * 2), (Div[carte13 - 1, 6] * 2.8)) + B_3]) → cart13Translate(Element[cartes, carte14], Vector[(0, 0), ((Mod[carte14 - 1, 6] * 2), (Div[carte14 - 1, 6] * 2.8)) + B_3]) → cart14Translate(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.