[Math] Convert a circle to a polygon

circlespolygons

If I have a circle with a given radius, how calculate I find a regular polygon's vertices, if I know they are all on the circles edge (like in the images below)?

enter image description here

Best Answer

These points on the unit circle given by $x^2+y^2=1$ will form a regular $n$-gon:

$$(x,y)=(\cos(\frac{2k\pi}{n}),\sin(\frac{2k\pi}{n}))$$

for $k=0, 1,\cdots, n-1$.

And they're in fact the roots of unity which means the complex roots of the equation $z^n=1$. You need to know complex numbers to fully understand this answer.

But you can also use trigonometry to achieve this. Note that you want to divide a circle into $n$ sections each of $\frac{360}{n}$ degrees. Now use trigonometry to see why that's true. When $k$ ranges from $0$ to $n-1$, you are moving $\frac{360}{n}$ degrees forward on the circle. Does it make sense?

Related Question