у0 = 2174;(meter)
V0 = 159;(meters / sec)
theta0 = 0;(* initial pitch *)
mL = .0011;
mD = .0001;
g = 9.8;
solutions = NDSolve[ {v '[t] == -g * Sin[theta[t]] - mD * v[t] ^2, v[t] * theta ’ [t] == -g * Cos[ theta[t]] +mL *v[t]^2, v[0] == V0, theta[0] ==theta0}, {v[t], theta[t]}, {t, 0, 120}];
speed[ t_] = v[t] /. solutions[[1]][[1]];
angle[ t_] = theta[t] /. solutions[[1]][[2]];
PositionSol = NDSolve[ {x '[t] == speed[t] * Cos[angle[t]], y '[t] == speed[t] * Sin[angle[t]], x[0] == 0, y(0) == y0}, {x[t], y[t]}, {t, 0, 120}];
xP[t_] = x[t] /.PositionSol[[1]][[1]];
yP[t_] = y[t] /.PositionSol[[1]][[2]];
Plotting Speed and Angle;
Plot[speed[t], {t, 0, 120}, PlotRange -> All]
Plot[angle[t] * (180 / Pi), {t, 0, 120}, PlotRange -> All]
Plot[xP[t],{t, 0, 120}]
Plot[yP[t],{t, 0, 120}]
I’m trying to plot vertical and horizontal distance against time, but the graph is not displayed. I’m new to Wolfram; kindly help!

