Pyramid 3
Loading the math board and drawing, please wait…
This example demonstrates the construction of a pyramid. Key mathematical concepts include the structure of a pyramid in solid geometry. Using GeoGebra commands such as Random, If, and Mod, the example dynamically shows the faces and vertices of the pyramid. Suitable for high school students and teachers for teaching and learning solid geometry.
GeoGebra Commands & Parameters
Random(5, 10) → n1Random(5, 10) → n2Random(1, 2) → fRandom(3, 15) → nIf(f ≟ 1, b1, b2) → bIf(f ≟ 1, a1, a2) → aIf(f ≟ 1, c1, c2) → cMod(e, 1000) → ef1If(ef1 < 10 ∧ ef10 > 0, ef10 + ",00" + ef1, If[ef1 < 100 ∧ ef10 > 0, ef10 + ",0" + ef1, If[ef10 ≟ 0, "" + ef1, ef10 + "," + ef1]]) → tok1Mod(e1, 1000) → ef2If(ef2 < 10 ∧ ef20 > 0, ef20 + ",00" + ef2, If[ef2 < 100 ∧ ef20 > 0, ef20 + ",0" + ef2, If[ef20 ≟ 0, "" + ef2, ef20 + "," + ef2]]) → tok2Mod(e2, 1000) → ef3If(ef3 < 10 ∧ ef30 > 0, ef30 + ",00" + ef3, If[ef3 < 100 ∧ ef30 > 0, ef30 + ",0" + ef3, If[ef30 ≟ 0, "" + ef3, ef30 + "," + ef3]]) → tok3Mod(e3, 1000) → ef4If(ef4 < 10 ∧ ef40 > 0, ef40 + ",00" + ef4, If[ef4 < 100 ∧ ef40 > 0, ef40 + ",0" + ef4, If[ef40 ≟ 0, "" + ef4, ef40 + "," + ef4]]) → tok4Mod(ar1, 1000) → af1Mod(ar2, 1000) → af2Mod(ar3, 1000) → af3Random(1, 4) → gMod(ar4, 1000) → af4If(af1 < 10 ∧ af10 > 0, af10 + ",00" + af1, If[af1 < 100 ∧ af10 > 0, af10 + ",0" + af1, If[af10 ≟ 0, "" + af1, af10 + "," + af1]]) → aok1If(af2 < 10 ∧ af20 > 0, af20 + ",00" + af2, If[af2 < 100 ∧ af20 > 0, af20 + ",0" + af2, If[af20 ≟ 0, "" + af2, af20 + "," + af2]]) → aok2If(af3 < 10 ∧ af30 > 0, af30 + ",00" + af3, If[af3 < 100 ∧ af30 > 0, af30 + ",0" + af3, If[af30 ≟ 0, "" + af3, af30 + "," + af3]]) → aok3If(af4 < 10 ∧ af40 > 0, af40 + ",00" + af4, If[af4 < 100 ∧ af40 > 0, af40 + ",0" + af4, If[af40 ≟ 0, "" + af4, af40 + "," + af4]]) → aok4If(g ≟ 1, "ลบ.ซม.", If[g ≟ 2, "ตร.ซม.", "ซม."]) → noiIf(g ≟ 1, tok1, If[g ≟ 2, aok1, If[g ≟ 3, bt + "", ct + ""]]) → to1If(g ≟ 1, tok2, If[g ≟ 2, aok2, If[g ≟ 3, bt2 + "", ct1 + ""]]) → to2If(g ≟ 1, tok3, If[g ≟ 2, aok3, If[g ≟ 3, bt3 + "", ct2 + ""]]) → to3If(g ≟ 1, tok4, If[g ≟ 2, aok4, If[g ≟ 3, bt4 + "", ct3 + ""]]) → to4Random(1, 4) → hIf(i ≟ 1, "ก.", If[i ≟ 2, "ข.", If[i ≟ 3, "ค.", "ง."]]) → text25If(h ≟ 1, "ก.", If[h ≟ 2, "ข.", If[h ≟ 3, "ค.", "ง."]]) → text27