This commit is contained in:
Le_Foucheur committed 2024-10-18 00:24:23 +02:00
1 parent 3ecad1b5a8
commit 5eef19a681
9 files changed
+224 -3

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
from math import cos, pi
from matplotlib.pyplot import show, plot
def I(x,N):
res = 0
for i in range(N):
res += (1 / (1 + x * cos(2 * pi * i / N))**2)
return 2 * pi/N * res
precision = 10000
N = 10000
Y = [I(i/(2*N), precision) for i in range(N +1)]
X = [i/(2*N) for i in range(N+1)]
plot(X,Y)
show()