Polygon Perimeter Demo by spkwan
Loading the math board and drawing, please wait…
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
Point({O + (1, 0), O + (0, 1), O + (-1, 0), O + (0, -1)}) → O_1Point({A + (length_A, 0), A + (0, length_A), A + (-length_A, 0), A + (0, -length_A)}) → A_1Point({B + (length_A, 0), B + (0, length_A), B + (-length_A, 0), B + (0, -length_A)}) → B_1Point({C + (length_A, 0), C + (0, length_A), C + (-length_A, 0), C + (0, -length_A)}) → C_1Point({E + (length_E, 0), E + (0, length_E), E + (-length_E, 0), E + (0, -length_E)}) → E_1Point({D + (length_A, 0), D + (0, length_A), D + (-length_A, 0), D + (0, -length_A)}) → D_1Point({G + (length_G, 0), G + (0, length_G), G + (-length_G, 0), G + (0, -length_G)}) → G_1Point({F + (length_E, 0), F + (0, length_E), F + (-length_E, 0), F + (0, -length_E)}) → F_1Point({I + (length_I, 0), I + (0, length_I), I + (-length_I, 0), I + (0, -length_I)}) → I_1Point({J + (length_J, 0), J + (0, length_J), J + (-length_J, 0), J + (0, -length_J)}) → J_1Point({H + (length_G, 0), H + (0, length_G), H + (-length_G, 0), H + (0, -length_G)}) → H_1Point({K + (1, 0), K + (0, 1), K + (-1, 0), K + (0, -1)}) → K_1Point({L + (1, 0), L + (0, 1), L + (-1, 0), L + (0, -1)}) → L_1Point({M + (1, 0), M + (0, 1), M + (-1, 0), M + (0, -1)}) → M_1Point({N + (1, 0), N + (0, 1), N + (-1, 0), N + (0, -1)}) → N_1Point({P + (1, 0), P + (0, 1), P + (-1, 0), P + (0, -1)}) → P_1Segment(Q, Q + (0, 0.25)) → s_5Segment(Q - (1, 0), Q + (-1, 0.25)) → t_5Vector(Midpoint[s_5], Midpoint[t_5]) → uVector(Midpoint[t_5], Midpoint[s_5]) → vSegment(Q, Q + (0.25, 0)) → a_6Segment(Q - (0, 1), Q + (0.25, -1)) → b_6Vector(Midpoint[a_6], Midpoint[b_6]) → zVector(Midpoint[b_6], Midpoint[a_6]) → u_1Midpoint(Midpoint[b_6], Midpoint[a_6]) → RMidpoint(Midpoint[t_5], Midpoint[s_5]) → SPolygon(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_6Polygon(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, ePolygon(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, iPolygon(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_4Polygon(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, rPolygon(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_1Polygon(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_1Polygon(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_1Polygon(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_1Polygon(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_2Polygon(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_2Polygon(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_2Polygon(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_3Polygon(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_3Polygon(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_3Polygon(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_3Point(Circle[T, 3]) → UPolygon(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_3Textfield(w) → inputBox1Textfield(length_A) → inputBox2Textfield(length_E) → inputBox3Textfield(length_G) → inputBox4Textfield(length_I) → inputBox5Textfield(length_J) → inputBox6Point(Circle[D_2, 1]) → E_2Polygon(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_4Point(Circle[P_2, 4]) → Q_2Polygon(P_2, Q_2, R_2, S_2, T_2, U_2) → poly19, p_5, q_5, r_5, s_4, t_6, u_4Point(Circle[V_2, 2]) → W_2Polygon(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_5Point(Circle[T_1, 3]) → U_1Polygon(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_4Segment(F_3, G_3) → f_5Segment(H_3, I_3) → g_5Segment(J_3, K_3) → h_5Segment(L_3, M_3) → i_5Segment(N_3, O_3) → j_5Segment(P_3, Q_3) → k_5Segment(F_3, P_3) → l_5Point(f_5) → R_3Point(k_5) → S_3Segment(R_3, S_3) → n_5Point(f_5) → T_3Point(k_5) → U_3Segment(T_3, U_3) → g_6Point(f_5) → V_3Point(k_5) → W_3Segment(V_3, W_3) → h_6Point(f_5) → Z_3Point(k_5) → A_4Segment(Z_3, A_4) → i_6Segment(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.