Math 2420: Earth and Mars Orbital Motion Final Project

Salomon Dushimirimana

Credit: Special thanks to Intiser Rajoan Parash for working with me on the technical details of the project.

Introduction

This project explores the dependence of the orbit on the initial position and velocity by utilizing Euler's method to solve the differential equations of motion through the approximation of the next values for the position and velocity. The program is written in React, a JavaScript library for building user interfaces.

Euler's Method Implementation

prerequisites

According to multiple credible sources, you don't need Node to run a react app. However, I have not tested this. If you are interested in running the program, you will need to install the following:

  1. Node/npm
  2. React

How to run the program

  1. Clone the repository git clone https://github.com/salomondush/solar-system-simulation.git
  2. Install the dependencies by running npm install
  3. Run the program by running npm start
  4. The program should open in your default browser. If not, go the address listed in the terminal. You'll see an interface with space, the sun, earth, mars, and a small panel to control mass of the sun and the speed of the planets.

Sample Run

PNG image