please use matlab commands and show them, I will make sure to give you a thumbs
ID: 2258943 • Letter: P
Question
please use matlab commands and show them, I will make sure to give you a thumbs up:)
3. A rocket ship is launched from the surface of the Earth. As it burns fuel, its mass decreases. When the rocket ship is at a distance d (kilometers) from the center of the earth, its mass (kilograms) is given by 10 Mass = 50000(1 + 9-4.3 d R where R is the radius of the Earth in kilometers. (a) the radius of the carth in meters (try google if you can't think of anything else) Next, define mass as a function of d: clear('d syms d mass (d) & in case R and d were previously defined. 50000*(1+9 *4.3"(10^5* ( 1 /d-1/R))) Using any method in Matlab you choose, (b) find the mass of the rocket ship on the surface of the earth. (What is d if the rocket is on the surface?) (c) find the mass of the rocket ship at 100 km above the surface of the earth (don't forget R), at the altitude of geostationary orbit (google, anyone?), and at the altitude of the moon. (d) find the limit of the mass of the rocket as d approaches infinity.Explanation / Answer
%%%%%%%%%% Matlab code %%%%%%%%%%%%%
clc;
clear all;
close all;
R=6371000;
%%% (a)
fprintf('Radius of earth = %d meter ',R);
R=R/1000;
syms d
M=50000*(1+9*4.3^(10^5*(1/d-1/R)));
%%% b)
disp('At surface of earth d=R');
M_surf=subs(M,R);
fprintf('Mass at surface of earth = %f kg ',M_surf);
%%%% c)
d1=R+100;
d2=R+36000;
d3=R+384400;
M1=subs(M,d1);
M2=subs(M,d2);
M3=subs(M,d3);
fprintf('Mass at distance 100km from earth = %f kg ',M1);
fprintf('Mass at altitude of geostationary satellite = %f kg ',M2);
fprintf('Mass at altitude of moon = %f kg ',M3);
%%% d)
M_lim=limit(M,d,Inf);
fprintf('As d approches to infinity Mass will become %f kg ',M_lim);
OUTPUT:
Radius of earth = 6371000 meter
At surface of earth d=R
Mass at surface of earth = 500000.000000 kg
Mass at distance 100km from earth = 365905.919890 kg
Mass at altitude of geostationary satellite = 50000.001604 kg
Mass at altitude of moon = 50000.000075 kg
As d approches to infinity Mass will become 50000.000051 kg
>>
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.