Question

MATLAB WORK PLEASEThe upward velocity of a rocket can be computed from the following formula: v=u* In mo -91 mo-91 where v = upward velocity, u

0 0
Add a comment Improve this question Transcribed image text
Answer #1

clc
clear

m0 = 160e3;
g = 9.81;
q = 2600;
u = 1800;
tl = 10;
tu = 40;
es = 0.0001;
v = 900;        % Arbitary velocity taken by choice
t_root = RocketVelocity(m0,g,q,u,v,tl,tu,es);


function t_root = RocketVelocity(m0,g,q,u,v,tl,tu,es)
    syms t
    f = @(t) v-(u*log(m0/(m0-q*t))-g*t);
    a = tl;
    b = tu;
    error = 1;
    while (error > es)
        t_root = (a+b)/2;
        if (f(a)*f(t_root) < 0)
            b = t_root;
        else
            a = t_root;
        end
        error = abs(f(t_root));
    end
    fprintf('Root is %f \t and the error is %f \n',t_root,error)
end

Root is 29.810624    and the error is 0.000038

Add a comment
Know the answer?
Add Answer to:
MATLAB WORK PLEASE The upward velocity of a rocket can be computed from the following formula:...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • The MATLAB code should have the outline of this: m0 = 160e3; % [kg] u =...

    The MATLAB code should have the outline of this: m0 = 160e3; % [kg] u = 1800; % [m/s] v = 750; % [m/s] q = 2600; % [kg/s] g = 9.81; % [m/s^2] tl = 10; % Lower guess [s] tu = 50; % Upper guess [s] es = 0.0001; %Stopping criterion t_v750 = rocket(m0, g, q, u, v,tl,tu,es) function t_root = rocket(m0,g,q,u,v,xl,xu,es); % Inputs: % m0: initial mass of rocket at time t=0 [kg] (scalar) % g: gravitational...

  • 2-1): The upward velocity of a rocket can be computed be the following formula: mo mo - qt where ...

    Please show all your steps and calculations. 2-1): The upward velocity of a rocket can be computed be the following formula: mo mo - qt where v upward velocity (m/s), u velocity at which fuel is expelled relative to the rocket (m/s), mo- initial mass of the rocket at time t 0s (kg), q -fuel consumption rate (kg/s), and g downward acceleration of gravity (assumed constant 9.81 m/s2). If u 1850 m/s, mo 160,000 kg, and q 2500 kg/s. a)...

  • PLEASE ALSO SOLVE USING THE SIMPSONS 1/3RULE.PLEASE DONT ATTEMPT THE QUESTION IF YOU CANT SOLVE BOTH GUASS AND SIMPSONS...

    PLEASE ALSO SOLVE USING THE SIMPSONS 1/3RULE.PLEASE DONT ATTEMPT THE QUESTION IF YOU CANT SOLVE BOTH GUASS AND SIMPSONS Q2. The upward velocity of a rocket can be computed by the following formula: mo v= uln gt gt mo where v= upward velocity, velocity at which fuel is expelled relative to the rocket, mg= initial mass of the rocket at time t= 0, fuel consumption rate, and downward acceleration of gravity (assumed constant 9.81m/s2). If u= 2500 kg/s, determine how...

  • 39. Rocket Motion Suppose a small single-stage rocket of total mass m) is launched vertically, th...

    I'd question 40 please. 39. Rocket Motion Suppose a small single-stage rocket of total mass m) is launched vertically, the positive direction is upward, the air resistance is linear, and the rocket consumes its fuel at a constant rate. In Problem 22 of Exercises 1.3 you were asked to use Newton's second law of motion in the form given in (17) of that exercise set to show that a mathematical model for the velocity v(t) of the rocket is given...

  • 10: A rocket accelerates upward by burning its onboard fuel, so its mass decreases with time....

    10: A rocket accelerates upward by burning its onboard fuel, so its mass decreases with time. Suppose the initial mass of the rocket at liftoff (including its fuel) is m, the fuel is consumed at rate r, and the exhaust gases are ejected with constant velocity ve (relative to the rocket). A model for the velocity of the rocket in meters per second after t seconds is given by the equation r(t)--gt-ve In (mmrt) where g is the acceleration due...

  • i need matlab code for this question please solve in matlab platform 4. The upward velocity of the rocket is measured with respect to time and the data is given in the following table Velocity...

    i need matlab code for this question please solve in matlab platform 4. The upward velocity of the rocket is measured with respect to time and the data is given in the following table Velocity vs time data for a rocket Time,(s) Velocity,v (m/s 106.8 5 279.2 12 We wanted to approximate the velocity profile by Construct the set of linear equation and solve the equation for the coefficients a,b,and c in d) 4. The upward velocity of the rocket...

  • A. a rocket is projected upward with a velocity of 53.2 m/s. how many metres will...

    A. a rocket is projected upward with a velocity of 53.2 m/s. how many metres will it pass over in the third second of its upward travel? gravitational acceleration is 9.81 B. A bullet it shot vertically into the air with an initial velocity of 106.34 m/s. Calculate the maximum vertical distance (in metres) reached before the bullet begins to fall back to earth. Take gravitational acceleration to be 9.81 m/s2.

  • A rocket has an initial mass of 29500 kg, of which 20% is the payload (i.e.,...

    A rocket has an initial mass of 29500 kg, of which 20% is the payload (i.e., the mass of the rocket minus the fuel). It burns fuel at a rate of 190 kg/s and exhausts its gas at a relative speed of 2.5km/s. (a) Find the thrust of the rocket. kN (b) Find the time until burnout. s (c) Find its final speed assuming it moves upward near the surface of the earth where the gravitational field g is constant....

  • 6) Some time, At, after a rocket blasts off from the surface of Earth, it is travelling at a cons...

    6) Some time, At, after a rocket blasts off from the surface of Earth, it is travelling at a constant speed, and its instantaneous mass (including fuel) is M 20,000 kg. The gas ejected out the back of the rocket is moving at a relative velocity of 1,200 m/s (downward) with respect to the rocket. You may assume that the rocket is still very close to the surface of the Earth, and that air resistance is negligible. A) What is...

  • Need help in solving this problem a 2220-kg test rocket is launched vertically from the launch...

    Need help in solving this problem a 2220-kg test rocket is launched vertically from the launch pad. Its fuel (of negligible mass) provides a thrust force so that its vertical velocity as a function of time is given by v(t)=At+Bt2, where A and B are constants and time is measured from the instant the fuel is ignited. At the instant of ignition, the rocket has an upward acceleration of 1.20 m/s2 and 1.80 s later an upward velocity of 1.64...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT