from matplotlib import pyplot
from math import *

D = 1000 #mm
LongueurOnde = D/2.5 #inférieure à L/2
T = 25 #ms
Ym = D/10

print("D = ", D, " mm ; LongeurOnde = ", LongueurOnde, " mm ; T = ", T, " ms ; Ym = ", Ym, " mm")

list_x=[]
list_y=[]

for x in range (0, D):
    list_x.append(x)
    y=Ym*(1+sin(2*pi*0/T-2*pi*x/LongueurOnde-pi/2))
    list_y.append(y)

print(list_x)
print(list_y)
