Solving equations numerically in Mathcad 2001i Professional

AI Thread Summary
The discussion revolves around creating a spacecraft trajectory from Earth to the Moon and back, focusing on the two-dimensional aspects of the problem as outlined in a referenced PDF. The user, Henrik, has successfully tackled the one-dimensional part but struggles with the two-dimensional calculations, specifically regarding the slingshot effect around the Moon. He proposes using initial x and y coordinates along with corresponding velocities to calculate acceleration and subsequent positions iteratively. Henrik seeks guidance on whether this approach is correct and how to implement it using Mathcad 2001i Professional. He also shares an image of his current work, indicating potential errors in his acceleration equations and asking for feedback on his methodology. The conversation highlights the challenges of applying mathematical concepts to complex orbital mechanics and the need for clarity in using programming functions within Mathcad.
Henriklm
Messages
7
Reaction score
0

Homework Statement



Hey there..

I would like to make a path for a spacecraft from Earth to moon, and back again. I found this pdf that explains how, but i can't figure it out.

Homework Equations



http://courses.ncssm.edu/math/NCSSM%...r%203/Moon.pdf

"Part II: The slingshot around the Moon. A two-dimensional problem" (p. 4-6).

The Attempt at a Solution

Is the trick to take initiating x,y coordinates and x,y velocity, calculate the acceleration at that point and then calculate where it will be after 0.001 t, then calculate the new acceleration and velocity and so on?

How can I solve this using Mathcad 2001i Professional?

Or am I approaching this the wrong way?
I´ve solved the first part of the PDF, where it is in one dimension, but I can't figure out how to do it in two dimentions :S

Thank you :-)

Henrik
 
Last edited by a moderator:
Physics news on Phys.org
I'm not sure how to use the "for" function, but here goes

http://img819.imageshack.us/img819/6548/billedtilsp.jpg

mmåne = mass of moon
mjord = mass of earth
xmåne = x position of moon
ymåne = y position of moon

Earth = (0;0)

Could this be a solution? Am i going down the right path, or is it a dead end this way. If not, what could be a solution?

Thank you :-)

Henrik

P.S. I am sure there is a lot of errors in the equation for acceleration, but I can always fix that later :-)
 
Last edited by a moderator:
Back
Top