import numpy as np
import matplotlib.pyplot as plt
t = []
x = []
y = []
plt.xlabel('Coordonnees x')
plt.ylabel('Coordonnees y')
plt.title('Trajectoire de la Terre')
plt.scatter(x, y, marker = '+')
i = 1
while i < len(t)-1 :
alpha = np.arctan2(y[i], x[i]) - np.arctan2(y[i-1], x[i-1])
r0 = np.sqrt(x[i]**2 + y[i]**2)
r1 = np.sqrt(x[i-1]**2 + y[i-1]**2)
A = r0*r1*np.sin(alpha)/2
plt.fill([x[i], x[i-1], 0], [y[i], y[i-1], 0], label='A = ' + "%.2e"%A + ' u.a.**2')
i += 2
plt.legend(loc='center right')
plt.show()
| Date \boldsymbol{t}\bold{(j)} depuis le 01/01/2020 | Abscisse \boldsymbol{x} \bold{(u.a.)} | Ordonnée \boldsymbol{y} \bold{(u.a.)} |
| 0 | 0{,}017~5 | 0{,}999~8 |
| 2 | -0{,}017~0 | 0{,}999~9 |
| 4 | -0{,}051~3 | 0{,}998~7 |
| 6 | -0{,}085~7 | 0{,}996~3 |
| 8 | -0{,}119~9 | 0{,}992~8 |
| 10 | -0{,}154~0 | 0{,}988~1 |
| 12 | -0{,}187~9 | 0{,}982~2 |
| Planète | Mercure | Vénus | Terre | Mars | Jupiter | Saturne |
| Demi-grand axe \bm a (u.a) | 0{,}39 | 0{,}72 | 1{,}00 | 1{,}52 | 5{,}20 | 9{,}52 |
| Période de révolution \boldsymbol{T} (j) | 87{,}9 | 224{,}7 | 365{,}25 | 687 | 4~331 | 10~751 |
Nos manuels sont collaboratifs, n'hésitez pas à nous en faire part.
j'ai une idée !
Oups, une coquille