From b40a05fb7e4d649848ba19f3ceb833f9549c6b88 Mon Sep 17 00:00:00 2001 From: "antoine.perederii" Date: Mon, 12 Dec 2022 20:33:57 +0100 Subject: [PATCH] ajout des exos du tp de maths --- Maths/tp/Bases2/tp2/exo4_equation_parametrique.py | 3 +-- Maths/tp/Bases2/tp2/exo5_equation_parametrique.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Maths/tp/Bases2/tp2/exo4_equation_parametrique.py b/Maths/tp/Bases2/tp2/exo4_equation_parametrique.py index ab65502..eb4827f 100644 --- a/Maths/tp/Bases2/tp2/exo4_equation_parametrique.py +++ b/Maths/tp/Bases2/tp2/exo4_equation_parametrique.py @@ -2,7 +2,7 @@ import matplotlib.pyplot as plt import numpy as np from typing import Tuple -markers = np.arange(-3, 4) +markers = np.arange(-3, 4, 0.001) def droite(T: np.array, a: int, c: int, b: int, d: int) -> Tuple[Tuple[np.array, np.array], Tuple[np.array, np.array]]: marques = a + b * markers, c + d * markers points = a + b * T, c + d * T @@ -31,4 +31,3 @@ ax.set_xticks(range(-5, 6)) ax.set_yticks(range(-5, 6)) plt.show() - diff --git a/Maths/tp/Bases2/tp2/exo5_equation_parametrique.py b/Maths/tp/Bases2/tp2/exo5_equation_parametrique.py index d602190..bba8c78 100644 --- a/Maths/tp/Bases2/tp2/exo5_equation_parametrique.py +++ b/Maths/tp/Bases2/tp2/exo5_equation_parametrique.py @@ -3,7 +3,7 @@ import numpy as np from typing import Tuple tau = np.pi * 2 -T = np.linspace(0, tau, 16) +T = np.linspace(0, tau, 16000) def lissajous(n: int, m: int) -> Tuple[np.array, np.array]: C = np.cos(n * T)