| Author |
Comment/Response |
Bill Simpson
|
09/09/12 10:59pm
Perhaps this will help
In[1]:= dt=2;
g=9.8;
c=12.5;
m=68.1;
f=#+g-(c/m)# dt&;
NestList[f,0,6]
Out[6]= {0,9.8,16.0023,19.9278,22.4121,23.9845,24.9796}
In[7]:= dt=1;
NestList[f,0,11]
Out[8]= {0,9.8,17.8012,24.3337,29.6672,34.0217,37.5769,40.4795,42.8493,44.7842,46.3639,47.6536}
That defines a function f which uses the previous value to calculate the new value.
NestList then repeatedly applies the function f to the initial velocity to give each incremental new velocity.
URL: , |
|