Pyramid 3

Pyramid 3
Loading the math board and drawing, please wait…
2018-05-25 16:04
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

  1. Random(5, 10) → n1
  2. Random(5, 10) → n2
  3. Random(1, 2) → f
  4. Random(3, 15) → n
  5. If(f ≟ 1, b1, b2) → b
  6. If(f ≟ 1, a1, a2) → a
  7. If(f ≟ 1, c1, c2) → c
  8. Mod(e, 1000) → ef1
  9. If(ef1 < 10 ∧ ef10 > 0, ef10 + ",00" + ef1, If[ef1 < 100 ∧ ef10 > 0, ef10 + ",0" + ef1, If[ef10 ≟ 0, "" + ef1, ef10 + "," + ef1]]) → tok1
  10. Mod(e1, 1000) → ef2
  11. If(ef2 < 10 ∧ ef20 > 0, ef20 + ",00" + ef2, If[ef2 < 100 ∧ ef20 > 0, ef20 + ",0" + ef2, If[ef20 ≟ 0, "" + ef2, ef20 + "," + ef2]]) → tok2
  12. Mod(e2, 1000) → ef3
  13. If(ef3 < 10 ∧ ef30 > 0, ef30 + ",00" + ef3, If[ef3 < 100 ∧ ef30 > 0, ef30 + ",0" + ef3, If[ef30 ≟ 0, "" + ef3, ef30 + "," + ef3]]) → tok3
  14. Mod(e3, 1000) → ef4
  15. If(ef4 < 10 ∧ ef40 > 0, ef40 + ",00" + ef4, If[ef4 < 100 ∧ ef40 > 0, ef40 + ",0" + ef4, If[ef40 ≟ 0, "" + ef4, ef40 + "," + ef4]]) → tok4
  16. Mod(ar1, 1000) → af1
  17. Mod(ar2, 1000) → af2
  18. Mod(ar3, 1000) → af3
  19. Random(1, 4) → g
  20. Mod(ar4, 1000) → af4
  21. If(af1 < 10 ∧ af10 > 0, af10 + ",00" + af1, If[af1 < 100 ∧ af10 > 0, af10 + ",0" + af1, If[af10 ≟ 0, "" + af1, af10 + "," + af1]]) → aok1
  22. If(af2 < 10 ∧ af20 > 0, af20 + ",00" + af2, If[af2 < 100 ∧ af20 > 0, af20 + ",0" + af2, If[af20 ≟ 0, "" + af2, af20 + "," + af2]]) → aok2
  23. If(af3 < 10 ∧ af30 > 0, af30 + ",00" + af3, If[af3 < 100 ∧ af30 > 0, af30 + ",0" + af3, If[af30 ≟ 0, "" + af3, af30 + "," + af3]]) → aok3
  24. If(af4 < 10 ∧ af40 > 0, af40 + ",00" + af4, If[af4 < 100 ∧ af40 > 0, af40 + ",0" + af4, If[af40 ≟ 0, "" + af4, af40 + "," + af4]]) → aok4
  25. If(g ≟ 1, "ลบ.ซม.", If[g ≟ 2, "ตร.ซม.", "ซม."]) → noi
  26. If(g ≟ 1, tok1, If[g ≟ 2, aok1, If[g ≟ 3, bt + "", ct + ""]]) → to1
  27. If(g ≟ 1, tok2, If[g ≟ 2, aok2, If[g ≟ 3, bt2 + "", ct1 + ""]]) → to2
  28. If(g ≟ 1, tok3, If[g ≟ 2, aok3, If[g ≟ 3, bt3 + "", ct2 + ""]]) → to3
  29. If(g ≟ 1, tok4, If[g ≟ 2, aok4, If[g ≟ 3, bt4 + "", ct3 + ""]]) → to4
  30. Random(1, 4) → h
  31. If(i ≟ 1, "ก.", If[i ≟ 2, "ข.", If[i ≟ 3, "ค.", "ง."]]) → text25
  32. If(h ≟ 1, "ก.", If[h ≟ 2, "ข.", If[h ≟ 3, "ค.", "ง."]]) → text27