Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

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

I am looking to find $n$ number of points around an ellipse. They don't necessarily have to be equidistant.

Similar to what this forum is asking:

I found several answers that are similar but I am having a hard time expressing it in code.

share|cite|improve this question
Why not evaluate $(a\cos\,t,b\sin\,t)$ at $n$ equispaced values of $t$? – J. M. Aug 14 '12 at 12:25
up vote 1 down vote accepted

You can take the points $P_k=(x_k,y_k)$, with $$ x_k=a\cos(2k\pi/n)\\ y_k=b\sin(2k\pi/n) $$ for $k=0,\ldots,n-1$, and where $a,b$ are the semi-wight and the semi-heigth, respectively.

share|cite|improve this answer
Thank you that totally worked. Thank you so much! – Jacob Schatz Aug 14 '12 at 14:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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