# How do I calculate the positions of objects in orbit?

In a model of the solar system, given the Sun is at the point $(0, 0, 0)$, an given the six orbital elements for each object in orbit ($a$, $\epsilon$, $i$, $\Omega$, $\omega$, $M_0$), how can I calculate the relative position to the sun at a given time $t$?

You must solve the Kepler's equation:

$M = E - e \sin E$

(where $M$ is the mean anomaly, $e$ the eccentricity of the orbit, $E$ the eccentric anomaly). As you can see, this is a transcendental function, so you will probably need to iterate through a calculator, in order to solve it. Many of useful formulas to understand the parameters dependence are reported on the Wikipedia page as well.

Here is another page with some examples. Just use the formulas and try to play with numbers, at some point you will realize at least orders of magnitude of the binary system elements.

I'm not sure how much this will help, but I can give you this passage from Wikipedia:

Under ideal conditions of a perfectly spherical central body, and zero perturbations, all orbital elements, with the exception of the Mean anomaly are constants, and Mean anomaly changes linearly with time[dubious – discuss], scaled by the Mean motion, $n=\sqrt{\frac{\mu } {a^3}}$. Hence if at any instant $t_0$ the orbital parameters are $[e_0,a_0,i_0,\Omega_0,\omega_0,M_0]$, then the elements at time $t_0+\delta t$ is given by $[e_0,a_0,i_0,\Omega_0,\omega_0,M_0+n\delta t]$.

In other words, most of the orbital elements (save $M_0$) are constant under very short intervals.