Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

What is polar equation of a Heptagon ? I need to move some Android views in the form of a heptagon, for I need to have polar equations for Heptagon like for $x= r\sin(\theta)$ and $y=r\cos(\theta)$.

Is it possible to have polar equation for a heptagon too ?

share|cite|improve this question

marked as duplicate by Behaviour, Mike Miller, Claude Leibovici, Avitus, Swapnil Tripathi Dec 31 '14 at 9:22

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

You solution lies here – SweetWisher ツ May 6 '14 at 10:02
Its 6 sided, it would be great i could get it for 7 or 8 sided polygon ! – Charan Pai May 6 '14 at 10:04
then have a look here – SweetWisher ツ May 6 '14 at 10:06
^ but not at that (accepted) answer, but rather the one below it, which gives a polar equation for general $n$. – user147263 Dec 31 '14 at 6:40

A general formula for a regular polygon of radius $r$ with $n$ sides, denote $c_n = \cos(\pi/n)$, $s_n = \sin(\pi/n)$ and

$$f_n(x+iy) = \left||rs_n - |y|| - (rs_n - |y|)\right| + |x-rc_n|$$

then your polygon is given by

$$\prod_{k = 0}^{n-1} f_n\left(e^{-\frac{2 i k \pi}{n}} (x+iy)\right) = 0$$

(For heptagone $n = 7$).

share|cite|improve this answer
I need polar equations :( in terms of Theta – Charan Pai May 6 '14 at 11:20

Not the answer you're looking for? Browse other questions tagged or ask your own question.