From 5ac45bd805d5592c515f2964313d454b59e3da6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MARQUET?= <72651575+BreizhHardware@users.noreply.github.com> Date: Fri, 28 Mar 2025 16:24:07 +0100 Subject: [PATCH] update electron trajectory simulation: increase number of steps and correct position_y_exact calculation --- TP Phyisque Particule/Exercice 3.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TP Phyisque Particule/Exercice 3.py b/TP Phyisque Particule/Exercice 3.py index 99356c3..6b0a4f1 100644 --- a/TP Phyisque Particule/Exercice 3.py +++ b/TP Phyisque Particule/Exercice 3.py @@ -17,7 +17,7 @@ temps = [0] position_x = [0] position_y = [0] -n = 30 +n = 50 # Calcul des vitesses et positions for j in range(1, n): @@ -37,7 +37,7 @@ for j in range(1, n): omega = q * B / m R = m * V0x / (q * B) position_x_exact = [R * np.sin(omega * t) for t in temps] -position_y_exact = [R * (1 - np.cos(omega * t)) for t in temps] +position_y_exact = [-R * (1 - np.cos(omega * t)) for t in temps] # Tracé de la trajectoire plt.figure(figsize=(10, 6))