You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
448 B

import matplotlib.pyplot as plt
from math import cos, sin, tau
points = 10
frequence = tau / points
rosace = True
plt.figure()
X=[cos(n * frequence) for n in range(points + 1)]
Y=[sin(n * frequence) for n in range(points + 1)]
if rosace:
for i in range(points):
o = frequence
n = ((points // 2) - 1)
X.append(cos(n * frequence))
Y.append(sin(n * frequence))
plt.plot(X,Y,color='blue')
plt.axis('equal')
plt.title('Cercle')
plt.show()