Thursday, April 9, 2009

Checking your code

In case you want to check that your code is working ...

If you use the drag equation

F_d = \frac{1}{2}\rho C A \vec{v}\cdot\vec{v}
with starting parameters

v_x=31\,\text{m/s} \\
v_y=35\,\text{m/s}\\
m=0.046\,\text{kg}\\
A=0.00143\,\text{m}^2\\
\rho=1.225\,\text{kg}/\text{m}^3\\
C=0.25
then you should get a range of 126 meters over level ground (and 221 meters with C=0, i.e., no drag).

No comments:

Post a Comment