Bonjour,
je ne comprend pas pourquoi mon programme affiche un graphique tout bleu.
C'est censé faire une sinusoide.
Merci de votre aide.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 import numpy as np import matplotlib.pyplot as plt import math x = np.arange(0, 10, 0.001) y = 200*np.cos(((2*np.pi)/(4.0*math.pow(10, -3)))*x + ((np.pi)/2)) plt.plot(x,y) plt.axis([0, 10, -200, 200]) plt.show()
Partager