I have created a function that calculates a final velocity of a skydiver:
Now i want the function to automatically use c=50 once t=10 seconds.
Does anyone know?
Code:
Function David(vi, g, c, m, tf, ti, dt)
n = (tf - ti) / dt
v = vi
t = ti
For i = 1 To n
v = v + (g - (c / m) * v) * dt
Next i
David = v
End Function
Now i want the function to automatically use c=50 once t=10 seconds.
Does anyone know?