program to calculate the drag force of a cyclist
1.
% program to calculate the drag force of a cyclist
%input
% drag coefficient
c_d = 0.1 ;
% Area
A = 0.2;
% density
rho = 1.5;
% velocity
V = [1:25];
d_f = 0.5 * rho * V.^2 * A * c_d ;
plot (V,d_f);
xlabel(\'V\');
ylabel(\'drag\');
2.
% program to calculate the drag force of a cyclist
%input
% drag coefficient
c_d = [0.1:25] ;
% Area
A = 0.2;
% density
rho = 1.5;
% velocity
V = [50];
d_f = 0.5 * rho * V.^2 * A * c_d ;
plot (c_d,d_f);
xlabel(\'coeff-drag\');
ylabel(\'drag\');