You are on page 1of 4

1. a. T = 76, a = 5.2631, e = 9, P = 1.

b. The orbit appears irregular, instead of a single elliptical orbit, there are
appear to be 5.

c. Plotted here is the error as a function of time, (1 = 100%). X axis is t.

2. Plotted below are the files for energy error. X axis is t.

e. The method sym2astep is directly velocitystep, positionstep, then


positionstep, velocitystep (normalized to 1). This is a symplectic algorithm
(T2).
f. Plotted below are the three graphs on top of each other.

3. The error of the RK2 method explodes and never goes back because its
det(M) > 1, while the sympletic method goes back to a very small value.
Plotted below is Traject.txt

Plotted is energy error.

You might also like