- #1
DrDress
- 3
- 0
Homework Statement
Run a numerical analysis on elliptical orbits using the standard Runka-Kutta method. I already have the equations from Euler-Lagrange method in cartesian x,y-coordinates.
d2x/dt2 = -K x (x2 + y2 )-3/2
d2y/dt2 = -K y (x2 + y2 )-3/2
Homework Equations
I find it a little to get started. Most examples online are first order differential equations and/or single variable. So I'm not sure how to define my f(x,y,t) funktion. It's supposed to be the velocity dx/dt, right? But I "only" have the acceleration, so do I just multiply dt to get the velocity or what?