All the program in this category are written by JDK1.0.2 between 1996-2001.
Java simulations created by EJS can be found at [url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?action=collapse;c=3;sa=expand#3]Easy java simulation category[/url].

It is very easy to include air drag into ejs.
Just add air drag terms into evolution equations in ejs.

For this simulation : The drag force is propotional to V[sup]2[/sup]
For projectile motion you should have the following equations in EJS evolution page:

dx/dt=vx;
dy/dt=vy;
dvy/dt=-g;

If you want to add drag force like this one. In this model, the drag force is proportional to F=-b*V[sup]2[/sup], where b is the drag force coefficient.
Fx=-b*V[sup]2[/sup]*(vx/|V|)=-b*vx*|V|;
Fx=-b*V[sup]2[/sup]*(vy/|V|)=-b*vy*|V|;

You should modify the evolution equations to the following:
dx/dt=vx;
dy/dt=vy;
dvx/dt=-b*Math.sqrt(vx*vx+vy*vy)/m*vx;
dvy/dt=-b*Math.sqrt(vx*vx+vy*vy)*vy/m-g;

The following is EJS version of air drag simulation.

translate strings in simulation to different language format before download
Full screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
Download EJS jar file(1396.2kB):double click downloaded file to run it. (21 times by 14 users) , Download EJS source (24 times by 13 users) View EJS source