| Author |
Comment/Response |
Joshua
|
09/09/12 3:07pm
I've never taken a programming coarse before and am trying to figure this out for my numerical methods course for bioengineering.
I have the function v(t_i+1) = v(t_i)+(g-(c/m)v(t_i))(t_i+1 - t_i)
where v = velocity, initially 0
g = 9.8
c = 12.5 (drag coefficient)
m = 68.1
t_i = time, initially 0
t_i+1 = t_1 + (step size either 2sec, 1sec, or .5sec)
So my question is how can I find the velocities at the different times (0,2,4,6,8,10 or 0,1,2,3,4,5,6,7,8,9,10 etc.) and display the values in a matrix?
URL: , |
|