http://galileo.phys.virginia.edu/classes/109N/more_stuff/Applets/ProjectileMotion/jarapplet.html

I know that it uses the following equation to calculate the range of the projectile without air resistance

R = (v^2 sin2(theta))/g

R - Range

v - intial velocity

But I have no clue how it calculates range of the projectile with air resistance.

Does anyone know what equation(s) the program uses to calculate the range of the projectile with air resistance (air resistance enabled in the program)