1MileCrash said:
When I put these values into wolfram, I get something times i, what are you guys doing to get rid of it?
for e^(2i pi / 8) I get what looks like half of the square root of 2 plus half of the square root of 2 i.
Sorry guys, this math is a bit beyond my level but I really am enthralled by it. Are you guys just getting rid of the i's when multiplying everything?
When you understand how this works, you can look at an expression like e^{2\pi i * (\frac{1}{8})}and see instantly that it's exactly what you got from Wolfram.
That's because e^{2\pi i * (\frac{1}{8})} corresponds to the point in the plane that's 1/8 of the way around the unit circle, starting from the point (1,0) and going counterclockwise.
Going 1/8 around the circle is an angle of pi/4 radians, or 45 degrees. A line through the origin making an angle of pi/4 radians with the positive x-axis intersects the unit circle at the point (\frac{\sqrt{2}}{2}, \frac{\sqrt{2}}{2}), because you have an isosceles right triangle with hypotenuse 1, so by Pythagoras, each leg must be \frac{\sqrt{2}}{2}.
And by identifying the usual 2-dimensional plane with the complex numbers, we identify the point (\frac{\sqrt{2}}{2}, \frac{\sqrt{2}}{2}) with the complex number \frac{\sqrt{2}}{2} + i * \frac{\sqrt{2}}{2}.
In general, e^{2\pi i * t} is the point in the plane you get when you go t radians around the unit circle. This is quite an amazing fact, actually, and was a great discovery in the history of mathematics. It took around 100 years, from 1700 to 1800, for mathematicians to get a handle on this surprising relationship between the complex exponential function and the angles around the unit circle. As usual one person, Euler, gets his name attached to the discovery; but the result was actually the work of a lot of people over a long period of time.
Here's an article that explains all this and gives a bit of the history.
http://en.wikipedia.org/wiki/Euler's_formula
Now if you believe all that, then you can get eight points equidistant around the unit circle by letting t = 1/8, t = 2/8, t = 3/8, ..., t = 7/8, t = 8/8 = 1. That's where micromass and pmsrw3 are getting e^{\frac{2\pi ik}{n}} from. You're just letting n = 8 and letting k = 1 through 8.