Soit M0, M1, M2 les points du plan complexe d'affixe respectves : z0=0, z1=1, z2= exp(i*pi/3)
def points(n):
Abs=[0,1,1/2]
Ord=[0,0,(m.sqrt(3))/2]
for k in range(2,n+1):
Abs.append((Abs[k-2]+Abs[k-1]+Abs[k])/3)
Ord.append((Ord[k-2]+Ord[k-1]+Ord[k])/3)
return(Abs,Ord)
def points(n):
Abs=[0,1,1/2]
Ord=[0,0,(m.sqrt(3))/2]
for k in range(2,n+1):
Abs.append((Abs[k-2]+Abs[k-1]+Abs[k])/3)
Ord.append((Ord[k-2]+Ord[k-1]+Ord[k])/3)
return(Abs,Ord)
Aucun commentaire:
Enregistrer un commentaire