This commit is contained in:
Yael-II
2025-01-02 22:48:54 +01:00
commit 34371f3532
57 changed files with 6076 additions and 0 deletions

17
Source/TODEL_equations.py Normal file
View File

@@ -0,0 +1,17 @@
from sympy import *
# Forces
X, Y, U, V = symbols("X, Y, U, V")
POT = (X**2 + Y**2 + 2*X**2*Y - 2*Y**3/3)/2
KIN = (U**2 + V**2)/2
TOT = KIN + POT
DX = diff(POT, X)
DY = diff(POT, Y)
FX = -DX
FY = -DY
print(FX)
print(FY)