Dynamic Pressure for an Average Rocket
Develop the code for the dynamic pressure experienced by a rocket during launch.
We'll cover the following...
Marking Max Q
You also want to mark on the graph what the maximum pressure is and where it occurs; by marking this point, you can say at what time Max Q occurs and what value the maximum dynamic pressure reaches. You will use the built-in max()
function to determine the greatest number in y_values
, and you will use the index()
function to determine where that value is in the x_values
. Then, you can use that index to find out what elapsed time the highest value corresponds to. It is important to note that the index is the location in the list
of where the Max Q is in ...