Simulation, Physics, Differentiation, Integration, Python.
we approximate the derivatives. We can further calculate the rocket’s velocity and the time taken by the rocket to hit ground after it runs out of fuel. Lastly, we can compare the results with the analytical solution to check the accuracy of our numerical solution. The complete code can be found in