Given a set of orbit elements (assume inclination = 0, arg perigee = 0, RAAN = 0, e = known, and a = known), combined with a radius position and a velocity in orbit I should be able to forward propagate the position of the satellite by a given time t.
My current method:
$n = \sqrt{\frac{\mu}{a^3}}$
$E_0 = \mathrm{acos}((1-\frac{R}{a})\cdot(\frac{1}{e}))$
$M_0 = E_0 - e \cdot \mathrm{sin}(E_0)$
$M_1 = M_0 + n \cdot t$
$E_1 = M_1 + e \cdot \mathrm{sin}(E_1)$ <- for this I take an initial value of $E_1 = M_1$ and iterate
future positions:
$R = a \cdot (1-e \cdot \mathrm{cos}(E_1))$
$TrueA = 2 \cdot \mathrm{atan}(\sqrt{\frac{1+e}{1-e}} \cdot \mathrm{tan}(\frac{E_1}{2}))$
$V = \sqrt{\mu \cdot (2/R-1/a)}$
$fpa = \mathrm{atan}\frac{e \cdot \mathrm{sin}(TrueA)}{1+e \cdot \mathrm{cos}(TrueA)}$
I'm reasonably confident on every step except the finding the initial eccentric anomaly ($E_0$) and as it turns out this returns an error. The root of the error is trying to find the $\mathrm{acos}$ of a number less than -1 (first value I calculate is -1.0000000023241). I'm unsure of why this is occurring and any advice/help/alternative equations would be a great help.