I'm trying to use the improved euler method to calculate the position vector of a rocket on a mission from the earth to the moon. The method involves calculating new values of acceleration whilst time is incremented and using this IN ADDITION to the previous values of acceleration to find the new velocities, and similarly using the new and old velocities to find yet ne position vectors etc. Being a novice at C-programming and a complete newcomer to the improved euler method, I was hoping that someone would be able to advise me how I actually incorporate that into a loop?! Surely, as time increments my old acceleration values will be replaced by new ones and thus how can I use both!(adsbygoogle = window.adsbygoogle || []).push({});

You can see my previous formulae for acceleration in the following thread:

https://www.physicsforums.com/showthread.php?t=63800

& here is the image of the page from my project problem sheet, explaining the method I have to use. Thanks

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Loops in C-Programming

Loading...

**Physics Forums | Science Articles, Homework Help, Discussion**