Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Step-Size' topicStudent Support Forum > General > Archives > "Step-Size"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
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: ,

Subject (listing for 'Step-Size')
Author Date Posted
Step-Size Joshua 09/09/12 3:07pm
Re: Step-Size Bill Simpson 09/09/12 10:59pm
Re: Re: Step-Size Joshua Miller 09/21/12 5:28pm
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic