From 66b8f50f71ff3ddf214773c6e2fd45e8f19c20b9 Mon Sep 17 00:00:00 2001 From: Didictateur Date: Mon, 16 Feb 2026 12:08:23 +0100 Subject: [PATCH] =?UTF-8?q?double=20pendule=20=C3=A0=20ressort?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- double_pendule.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/double_pendule.py b/double_pendule.py index 5ddf3c9..49fd4a5 100644 --- a/double_pendule.py +++ b/double_pendule.py @@ -2,6 +2,8 @@ import legrandchien as lgc import matplotlib.pyplot as plt import matplotlib.animation as animation import numpy as np +import cProfile +import pstats g = lgc.Const(-10) m1 = lgc.Const(1) @@ -33,7 +35,7 @@ init = { "d_theta2" : 0 } -data = L.solve(init, 10, 0.01) +data = L.solve(init, 5, 0.01) # Extraire les positions times = sorted(data.keys())