## Two Dimensional Motion

Below is the two dimensional kinematic equation that we learn in physics class.

Given the initial position (x1, y1), initial speed v1, angle theta and vertical acceleration a, calculate the (x2, y2) position at time t.

Now we can use Python to calculate and visually see the result. These are the starting values:

• t = 100 seconds
• x1 = 0 meters
• y1 = 1000 meters
• v1 = 500 m/s
• a = -10 m/s^2
• $$\theta$$ = 60 degree

Using the following two dimensional formula:

$v_{1x} = v_{1} \cdot \cos {\theta}$ $v_{1y} = v_{1} \cdot \sin {\theta}$ $x_{2} = x_{1} + v_{1x} \cdot \Delta {t}$ $y_{2} = y_{1} + v_{1y} \cdot \Delta {t} + \frac{1}{2} \cdot a \cdot (\Delta t)^2$

Copy and paste the code below to Playground (trinket) and run it :)

You can get awesome 3D plot by running the code under jupyter notebook.