Star Polygons by Lenore Horner
Loading the math board and drawing, please wait…
In collections
Regular Polygons
This GeoGebra example demonstrates how to draw star polygons. What patterns do you see in the polygons? What geometrical questions can you answer about the polygons? This example uses commands like GCD, Sequence, Flatten, and others, suitable for middle school and above students to learn polygon geometry.
GeoGebra Commands & Parameters
GCD(Points, layer) → multiplicityLayerGCD(Points, skip) → multiplicityOuterSequence(((r * cos(((i * 2) * π / Points))), (r * sin(((i * 2) * π / Points)))), i, 0, Points - 1) → VertexternalSequence(Sequence[Segment[Element[Vertexternal, Mod[(j * skip) + m, Points] + 1], Element[Vertexternal, Mod[((j + 1) * skip) + m, Points] + 1]], j, 0, stopOuter - 1], m, 0, multiplicityOuter - 1) → segOrigFlatten(segOrig) → segUnifiedLength(segUnified) → counterSequence(Sequence[Intersect[Element[segUnified, i], Element[segUnified, j]], j, i + 1, counter], i, 1, counter - 1) → vertAllFlatten(vertAll) → vertFlatLength(vertDefined) → counter2Zip(Distance[(0, 0), a], a, vertDefined) → radiiUnique(radii) → radiiUniqueZip(If[x(a) > 0, atan(y(a) / x(a)), If[x(a) < 0, atan(y(a) / x(a)) + π, If[y(a) > 0, 1.5707963267948966, 4.71238898038469]]], a, LayerPts) → LayerPtsAnglesSort(Sequence[(Element[LayerPtsAngles, i], i), i, 1, Points]) → LayerPtsSorterSequence(Element[LayerPts, y(Element[LayerPtsSorter, i])], i, 1, Points) → LayerPtsSortedSequence(Sequence[Segment[Element[LayerPtsSorted, Mod[(j * layer) + m, Points] + 1], Element[LayerPtsSorted, Mod[((j + 1) * layer) + m, Points] + 1]], j, 0, stopLayer - 1], m, 0, multiplicityLayer - 1) → LayerSegsLength(radiiUnique) → layersSegment(Element[LayerPtsSorted, 1], Element[LayerPtsSorted, 2]) → PointSpacingAngle(Element[LayerPtsSorted, 1 + (2 * layer)], Element[LayerPtsSorted, 1 + layer], Element[LayerPtsSorted, 1]) → αLaTeX(((((((("\text{segment length} = 2 (radius)\sin\left(\frac{\pi}{n}layer\right)\cr \text{segment length}=2(" * Element[radiiUnique, layer]) * ")\sin\left(\frac{\pi}{") * Points) * "}") * layer) * "\right)=") * segLength)) → segmentFormulaLaTeX((((((((("angle=\frac{1}{2}(n-2(layer))\frac{360^{\circ}}{n}\cr angle=\frac{1}{2}(" * Points) * "-2(") * layer) * "))\frac{360^{\circ}}{") * Points) * "}=") * angle) * "^{\circ}")) → angleFormulaSegment((0, 0), (2, 0)) → aRotate(a, Element[LayerPtsAngles, check]) → a'Element(LayerPts, check) → checkUnsrtPtsElement(LayerPtsSorted, check) → checkSrtPtsSegment(Element[LayerPtsSorted, 1], Element[LayerPtsSorted, 1 + layer]) → sampleSegLaTeX((((((("\textcolor{#CC6600}{\text{angle = " * α) * "}}\cr\textcolor{#CC6600}{\text{point spacing = ") * PointSpacing) * "}}\cr\textcolor{#FF00FF}{\text{segment length = ") * Element[LayerSegs, 1, 1]) * "}}")) → DataReadOut
AI Drawing Prompt Reference
Draw star polygons to illustrate the relationships between their internal angles and side lengths. Start by drawing concentric circles and marking their intersection points, then connect these points to form the star shape. Next, measure the lengths of each side and the angles between them, and label the calculated formulas next to them to show the relationship between side lengths, radii, and angles with the number of sides. Finally, highlight key angle and side length data in different colors to make the figure clear and easy to understand.
The prompt above was compiled from the original drawing commands and is for reference only.