Added some gitignores.
Trying to get class to work.
Makefile.
Update CelestialObject.cpp

Problemet var i denne filen. Legg merke til at det som printes er en tilfeldig verdi som er veldig liten --- ofte kjennetegnet på en verdi som blir satt automatisk av kompilatoren når en verdi deklareres men ikke settes til en viss verdi.

Siden du hadde `double` der ble dette deklarert som en ny variabel og ikke satt til klassevariabelen `m`, der du egentlig ville ha den lagret.
Merge pull request #1 from jaremikb/patch-1

Update CelestialObject.cpp
Made a change.
Merge branch 'development' of github.com:vedad/Project-3 into development
Adding objects works.

Can now add objects and their parameters through a file.
Implemented RK4.

Haven't tested RK4 yet. Currently writing the various functions that RK4
uses.
Necessary methods for RK4 are now written.

Have now written methods for finding the force on an object, from all
other objects. Thus the acceleration, velocity and positions are found
with RK4. Have still not tested the RK4 method.
Solar system simulation working.

The orbits are spiralling towards the Sun, and the rate varies with how
I choose the time step. There might be some flaw in my implementation
causing this, but I haven't figured it out yet.
Plots the orbits. Work of @jaremikb
Made some minor changes.
Testing if new branch works.
Simulation now works perfectly.

My implementation of RK4 was wrong, which resulted in a spiralling
trajectory of the planets.

The orbits are still spiralling, but at a much, much slower rate. This
is probably due to the instability of the RK4 method.
Added [AU] as unit on axis labels.
Program done.

Program now simulates the orbit for any number of objects, and also
checks for energy and angular momentum conservation.
Plots angular momentum.
Plots energy.
Axis labels fixed.