This is a bit of math and turtles, in python, to simulate the ideal flight of a rocket.
The function assumes that there is no air resistance, the rocket is massless, and that application of thrust is at t=0.
If you actually want to launch a rocket, do not use this.
The x value is one order of magnitude greater that the returned value for the purpose of graphing. The Y-axis is not distorted.
The red line is when the rocket is falling. The green line is when the rocket is ascending.
this is really cool
@AgastyaSandhuja Thanks. Couldn't get the better set of equations to work though.
it's still good :-) @CodeLongAndPros
@AgastyaSandhuja I know. Just wish it was better. Looking for a college textbook to find the right equations. Google failed me.
Ideal rocket simulator
This is a bit of math and turtles, in python, to simulate the ideal flight of a rocket.
The function assumes that there is no air resistance, the rocket is massless, and that application of thrust is at t=0.
If you actually want to launch a rocket, do not use this.
The x value is one order of magnitude greater that the returned value for the purpose of graphing. The Y-axis is not distorted.
The red line is when the rocket is falling. The green line is when the rocket is ascending.
this is really cool
@AgastyaSandhuja Thanks. Couldn't get the better set of equations to work though.
it's still good :-) @CodeLongAndPros
@AgastyaSandhuja I know. Just wish it was better. Looking for a college textbook to find the right equations. Google failed me.