Question: Practice problem 2 : Understanding the differences between each estimation method, we can practice a problem togethe We will utilize an approximation method to calculate
Practice problem :
Understanding the differences between each estimation method, we can practice a problem togethe We will utilize an approximation method to calculate the velocity and acceleration of a rocket give time and altitude. Copy the code below into your script file. You can find the code on M Blackboard Course Materials Week Lab.To calculate the velocity of a rocket, it is simply the timederivative of the altitude. Write code to perform this calculation. Your code should use the forward or backwarddifference for the first an last velocity calculation, and then use the centered difference formula for the rest. Hint: a for loop with an if statement could help! A few calculations are provided on the right.
The acceleration is the timederivative of the velocity, computed similarly to velocity calculation.
Create a table using the table function read the documentation if you need help in which the columns from left to right are Time, Altitude, Velocity, and Acceleration respectively. Part of the table is given on the right.
Then generate a by subplot: altitude vs time, velocity vs time, and acceleration vs time. Ensure your plot is of "presentation quality".
table
tableTimeAltitude,Velocity,Acceleration
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
