-
Notifications
You must be signed in to change notification settings - Fork 0
/
objects.py
42 lines (38 loc) · 1.02 KB
/
objects.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
planet1 = [[0,0,0],[0,0,0]] #First element of the list : postion. Second : velocity
planet2 = [[0,46001200000,0],[58980,0,0]] #mercure
planet3 = [[0,107476000000,0],[35264.3,0,0]] #vénus
planet4 = [[0,147093163000,0],[30290,0,0]] #terre
planet5 = [[0,206655000000,0],[26503,0,0]] #mars
planet6 = [[0,740680000000,0],[13714,0,0]] #Jupiter
planet7 = [[0,1349800000000,0],[10182,0,0]] #Saturne
planet8 = [[0,2735000000000,0],[7129.87,0,0]] #Uranus
planet9 = [[0,4459800000000,0],[5479.5,0,0]] #Neptune
m1 = 1.98855e30
m2 = 3.3011e23
m3 = 4.8675e24
m4 = 5.9736e24
m5 = 6.4185e23
m6 = 1.8986e27
m7 = 5.6846e26
m8 = 8.6810e25
m9 = 102.43e24
planets = []
planets.append(planet1)
planets.append(planet2)
planets.append(planet3)
planets.append(planet4)
planets.append(planet5)
planets.append(planet6)
planets.append(planet7)
planets.append(planet8)
planets.append(planet9)
masses = []
masses.append(m1)
masses.append(m2)
masses.append(m3)
masses.append(m4)
masses.append(m5)
masses.append(m6)
masses.append(m7)
masses.append(m8)
masses.append(m9)