Polygon Perimeter Demo by spkwan

Polygon Perimeter Demo by spkwan
Loading the math board and drawing, please wait…
2011-10-15 07:12
This example demonstrates the calculation and visualization of polygon perimeter. It involves core math concepts like polygons, perimeter, and geometric construction. Construction uses commands such as Point, Segment, Vector, Midpoint, Polygon, and Textfield to create polygons and calculate side lengths. Suitable for middle school and above learning polygon properties and optimization problems.

GeoGebra Commands & Parameters

  1. Point({O + (1, 0), O + (0, 1), O + (-1, 0), O + (0, -1)}) → O_1
  2. Point({A + (length_A, 0), A + (0, length_A), A + (-length_A, 0), A + (0, -length_A)}) → A_1
  3. Point({B + (length_A, 0), B + (0, length_A), B + (-length_A, 0), B + (0, -length_A)}) → B_1
  4. Point({C + (length_A, 0), C + (0, length_A), C + (-length_A, 0), C + (0, -length_A)}) → C_1
  5. Point({E + (length_E, 0), E + (0, length_E), E + (-length_E, 0), E + (0, -length_E)}) → E_1
  6. Point({D + (length_A, 0), D + (0, length_A), D + (-length_A, 0), D + (0, -length_A)}) → D_1
  7. Point({G + (length_G, 0), G + (0, length_G), G + (-length_G, 0), G + (0, -length_G)}) → G_1
  8. Point({F + (length_E, 0), F + (0, length_E), F + (-length_E, 0), F + (0, -length_E)}) → F_1
  9. Point({I + (length_I, 0), I + (0, length_I), I + (-length_I, 0), I + (0, -length_I)}) → I_1
  10. Point({J + (length_J, 0), J + (0, length_J), J + (-length_J, 0), J + (0, -length_J)}) → J_1
  11. Point({H + (length_G, 0), H + (0, length_G), H + (-length_G, 0), H + (0, -length_G)}) → H_1
  12. Point({K + (1, 0), K + (0, 1), K + (-1, 0), K + (0, -1)}) → K_1
  13. Point({L + (1, 0), L + (0, 1), L + (-1, 0), L + (0, -1)}) → L_1
  14. Point({M + (1, 0), M + (0, 1), M + (-1, 0), M + (0, -1)}) → M_1
  15. Point({N + (1, 0), N + (0, 1), N + (-1, 0), N + (0, -1)}) → N_1
  16. Point({P + (1, 0), P + (0, 1), P + (-1, 0), P + (0, -1)}) → P_1
  17. Segment(Q, Q + (0, 0.25)) → s_5
  18. Segment(Q - (1, 0), Q + (-1, 0.25)) → t_5
  19. Vector(Midpoint[s_5], Midpoint[t_5]) → u
  20. Vector(Midpoint[t_5], Midpoint[s_5]) → v
  21. Segment(Q, Q + (0.25, 0)) → a_6
  22. Segment(Q - (0, 1), Q + (0.25, -1)) → b_6
  23. Vector(Midpoint[a_6], Midpoint[b_6]) → z
  24. Vector(Midpoint[b_6], Midpoint[a_6]) → u_1
  25. Midpoint(Midpoint[b_6], Midpoint[a_6]) → R
  26. Midpoint(Midpoint[t_5], Midpoint[s_5]) → S
  27. Polygon(A, A - w * UnitOrthogonalVector[Segment[A, A_1]], A_1 - w * UnitOrthogonalVector[Segment[A, A_1]], A_1 + w * UnitOrthogonalVector[Segment[A, A_1]], A + w * UnitOrthogonalVector[Segment[A, A_1]]) → poly0, a_7, c_6, d_6, e_6, f_6
  28. Polygon(B, B - w * UnitOrthogonalVector[Segment[B, B_1]], B_1 - w * UnitOrthogonalVector[Segment[B, B_1]], B_1 + w * UnitOrthogonalVector[Segment[B, B_1]], B + w * UnitOrthogonalVector[Segment[B, B_1]]) → poly1, b, a, c, d, e
  29. Polygon(C, C - w * UnitOrthogonalVector[Segment[C, C_1]], C_1 - w * UnitOrthogonalVector[Segment[C, C_1]], C_1 + w * UnitOrthogonalVector[Segment[C, C_1]], C + w * UnitOrthogonalVector[Segment[C, C_1]]) → poly2, c_1, f, g, h, i
  30. Polygon(D, D - w * UnitOrthogonalVector[Segment[D, D_1]], D_1 - w * UnitOrthogonalVector[Segment[D, D_1]], D_1 + w * UnitOrthogonalVector[Segment[D, D_1]], D + w * UnitOrthogonalVector[Segment[D, D_1]]) → poly3, d_1, j, k, l, m_4
  31. Polygon(E, E - w * UnitOrthogonalVector[Segment[E, E_1]], E_1 - w * UnitOrthogonalVector[Segment[E, E_1]], E_1 + w * UnitOrthogonalVector[Segment[E, E_1]], E + w * UnitOrthogonalVector[Segment[E, E_1]]) → poly4, e_1, n, p_4, q, r
  32. Polygon(F, F - w * UnitOrthogonalVector[Segment[F, F_1]], F_1 - w * UnitOrthogonalVector[Segment[F, F_1]], F_1 + w * UnitOrthogonalVector[Segment[F, F_1]], F + w * UnitOrthogonalVector[Segment[F, F_1]]) → poly5, f_1, s, t, a_1, b_1
  33. Polygon(G, G - w * UnitOrthogonalVector[Segment[G, G_1]], G_1 - w * UnitOrthogonalVector[Segment[G, G_1]], G_1 + w * UnitOrthogonalVector[Segment[G, G_1]], G + w * UnitOrthogonalVector[Segment[G, G_1]]) → poly6, g_1, h_1, i_1, j_1, k_1
  34. Polygon(H, H - w * UnitOrthogonalVector[Segment[H, H_1]], H_1 - w * UnitOrthogonalVector[Segment[H, H_1]], H_1 + w * UnitOrthogonalVector[Segment[H, H_1]], H + w * UnitOrthogonalVector[Segment[H, H_1]]) → poly7, h_2, l_1, m_1, n_1, p_1
  35. Polygon(I, I - w * UnitOrthogonalVector[Segment[I, I_1]], I_1 - w * UnitOrthogonalVector[Segment[I, I_1]], I_1 + w * UnitOrthogonalVector[Segment[I, I_1]], I + w * UnitOrthogonalVector[Segment[I, I_1]]) → poly8, i_2, q_1, r_1, s_1, t_1
  36. Polygon(J, J - w * UnitOrthogonalVector[Segment[J, J_1]], J_1 - w * UnitOrthogonalVector[Segment[J, J_1]], J_1 + w * UnitOrthogonalVector[Segment[J, J_1]], J + w * UnitOrthogonalVector[Segment[J, J_1]]) → poly9, j_2, a_2, b_2, c_2, d_2
  37. Polygon(K, K - w * UnitOrthogonalVector[Segment[K, K_1]], K_1 - w * UnitOrthogonalVector[Segment[K, K_1]], K_1 + w * UnitOrthogonalVector[Segment[K, K_1]], K + w * UnitOrthogonalVector[Segment[K, K_1]]) → poly10, k_2, e_2, f_2, g_2, l_2
  38. Polygon(L, L - w * UnitOrthogonalVector[Segment[L, L_1]], L_1 - w * UnitOrthogonalVector[Segment[L, L_1]], L_1 + w * UnitOrthogonalVector[Segment[L, L_1]], L + w * UnitOrthogonalVector[Segment[L, L_1]]) → poly11, l_3, m_2, n_2, p_2, q_2
  39. Polygon(M, M - w * UnitOrthogonalVector[Segment[M, M_1]], M_1 - w * UnitOrthogonalVector[Segment[M, M_1]], M_1 + w * UnitOrthogonalVector[Segment[M, M_1]], M + w * UnitOrthogonalVector[Segment[M, M_1]]) → poly12, m_3, r_2, s_2, t_2, a_3
  40. Polygon(N, N - w * UnitOrthogonalVector[Segment[N, N_1]], N_1 - w * UnitOrthogonalVector[Segment[N, N_1]], N_1 + w * UnitOrthogonalVector[Segment[N, N_1]], N + w * UnitOrthogonalVector[Segment[N, N_1]]) → poly13, n_3, b_3, c_3, d_3, e_3
  41. Polygon(O, O - w * UnitOrthogonalVector[Segment[O, O_1]], O_1 - w * UnitOrthogonalVector[Segment[O, O_1]], O_1 + w * UnitOrthogonalVector[Segment[O, O_1]], O + w * UnitOrthogonalVector[Segment[O, O_1]]) → poly14, o, f_3, g_3, h_3, i_3
  42. Polygon(P, P - w * UnitOrthogonalVector[Segment[P, P_1]], P_1 - w * UnitOrthogonalVector[Segment[P, P_1]], P_1 + w * UnitOrthogonalVector[Segment[P, P_1]], P + w * UnitOrthogonalVector[Segment[P, P_1]]) → poly15, p_3, j_3, k_3, q_3, r_3
  43. Point(Circle[T, 3]) → U
  44. Polygon(T, U, V, W, Z, Q_1, R_1, S_1) → poly16, t_3, u_2, v_1, w_1, z_1, q_4, r_4, s_3
  45. Textfield(w) → inputBox1
  46. Textfield(length_A) → inputBox2
  47. Textfield(length_E) → inputBox3
  48. Textfield(length_G) → inputBox4
  49. Textfield(length_I) → inputBox5
  50. Textfield(length_J) → inputBox6
  51. Point(Circle[D_2, 1]) → E_2
  52. Polygon(D_2, E_2, N_2, O_2, F_2, G_2, H_2, I_2, J_2, K_2, L_2, M_2) → poly18, d_4, m_5, n_4, o_2, e_4, f_4, g_4, h_4, i_4, j_4, k_4, l_4
  53. Point(Circle[P_2, 4]) → Q_2
  54. Polygon(P_2, Q_2, R_2, S_2, T_2, U_2) → poly19, p_5, q_5, r_5, s_4, t_6, u_4
  55. Point(Circle[V_2, 2]) → W_2
  56. Polygon(V_2, W_2, Z_2, A_3, B_3, C_3, D_3, E_3) → poly20, v_3, w_3, z_3, a_5, b_5, c_5, d_5, e_5
  57. Point(Circle[T_1, 3]) → U_1
  58. Polygon(T_1, U_1, V_1, W_1, Z_1, A_2, B_2, C_2) → poly17, t_4, u_3, v_2, w_2, z_2, a_4, b_4, c_4
  59. Segment(F_3, G_3) → f_5
  60. Segment(H_3, I_3) → g_5
  61. Segment(J_3, K_3) → h_5
  62. Segment(L_3, M_3) → i_5
  63. Segment(N_3, O_3) → j_5
  64. Segment(P_3, Q_3) → k_5
  65. Segment(F_3, P_3) → l_5
  66. Point(f_5) → R_3
  67. Point(k_5) → S_3
  68. Segment(R_3, S_3) → n_5
  69. Point(f_5) → T_3
  70. Point(k_5) → U_3
  71. Segment(T_3, U_3) → g_6
  72. Point(f_5) → V_3
  73. Point(k_5) → W_3
  74. Segment(V_3, W_3) → h_6
  75. Point(f_5) → Z_3
  76. Point(k_5) → A_4
  77. Segment(Z_3, A_4) → i_6
  78. Segment(G_3, Q_3) → j_6

AI Drawing Prompt Reference

Draw a polygon to demonstrate the calculation and visualization of its perimeter. Start by creating a central point and generate four points extending in each direction from it. Each point should have a certain length. Then, use these points to construct multiple polygons, adjusting their sides and orientations to show different shapes. Finally, add text fields to display the side lengths and perimeter of the polygons for calculation and comparison.
The prompt above was compiled from the original drawing commands and is for reference only.