- #1
Hoofbeat
- 48
- 0
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!
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
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