//Example 8.8 m=2.80*10^6;//Mass at liftoff (kg) delta_m_by_delta_t=1.40*10^4;//Fuel-burn rate (kg/s) v_e=2.40*10^3;//Exhaust velocity (m/s) g=9.80;//Acceleration due to gravity (m/s^2) a=v_e*(delta_m_by_delta_t)/m-g;//Acceleration (m/s^2) printf('Initial acceleration = %0.2f m/s^2',a) //Openstax - College Physics //Download for free at http://cnx.org/content/col11406/latest