Professional Documents
Culture Documents
Bernandino Canoy
Bernandino Canoy
Members:
Bernandino C. Canoy
Kenneth Ian Balili
Ronilo Bombeo
Discussion:
This is the result of calculating and plotting the graph of the velocity (v) versus the ( ) air
density. We are given an equation of a retarding force and assigned to plot the said graph. We assigned
values to every variable in the equation and observe the result when we calculate for the velocity (v)
versus the ( ) air density created by the object in a projectile motion.
Calculation and Derivation:
From the equation
=
1
2
2
We get,
=
1
2
=
1
2
2
= (
1
2
2
)
() =
0
(
1
2
2
())
Result and Observation:
As it is shown in the graph, by fixing the drag coefficient (Cw), the area (A), the mass (m) , the
gravitational acceleration (g) and the air density () which is constant, the graph is a line (the green
color) in which as the velocity increases, the air density is the same that is constant.
The Code:
% initialize constants
g = 9.8; % acceleration due to gravity
ro = 1; % density of air in kilogram per meter cube
m = 1; % mass in kilograms
Cw = 0.3; % drag coefficient
A = 1; % area in meter square
dt = input('enter the step size ');
t = 0:dt:100;
v = zeros(length(t),1);
v(1) = 0;
for i = 1:length(t) - 1
v(i+1) = v(i)-(g -(Cw.*ro.*A.*v(i).*v(i))./2).*dt;
end
plot(ro,v)
ylabel('v');
xlabel('ro')
title('Physics 121 program');