Re: [Algorithms] Euler's integration
Brought to you by:
vexxed72
|
From: Erin C. <eri...@ya...> - 2003-02-06 05:27:18
|
If the acceleration is constant, there is no need to perform time stepping. If the acceleration is not constant, you can do much better than Euler's formula or Newton's formula. I suggest the 4th order Runge-Kutta to get started. See "Numerical Recipes in C++." Erin --- Igor Kravtchenko <ig...@ob...> wrote: > Here I just wonder what's this madness. > Integrating with constant acceleration is trivial > with Newton's formula: > > pos += velocity * dt + 0.5 * acc * dt * dt; > velocity += acc * dt; __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |