A simulation of the orbit of the earth for someone.
Install matplotlib and numpy along with python3 Run the files using cd and "python3 filename.py"
- Sinusoidal equation: distance(t) = -2.51e+06 * sin(1.70e-02 * t + 1.60e+00) + 1.50e+08 (km)
- Keep in mind that the lang_revised versions use time in seconds. the day_revised will return a function that inputs days
How to use: (On mac)
- Install python and pip (link here: https://www.python.org/downloads/release/python-3123/)
- In the terminal after installation run both "python3 --version" and "pip3 --version" and make sure both return a version number
- Run the following: "pip3 install matplotlib numpy"
- Sudo into the downloads folder (run: "cd Downloads")
- Run the desired script (use: "python3 filename.py", change the filename field to the name of the downloaded file)