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.
16 lines
641 B
16 lines
641 B
3 years ago
|
def distance(temp_jour,donneespoint):
|
||
|
"""Fonction qui dit qu'en prenant des points et ben on peut trouver une distance entre 2 point ² 1s"""
|
||
|
x1=temp_jour[0]
|
||
|
x2=donneespoint[0]
|
||
|
y1=temp_jour[1]
|
||
|
y2=donneespoint[1]
|
||
|
z1=temp_jour[2]
|
||
|
z2=donneespoint[2]
|
||
|
dist=((x1-x2)**2)+((y1-y2)**2)+((z1-z2)**2)
|
||
|
return print(dist)
|
||
|
distance([21,43,4],[23,45,3])
|
||
|
|
||
|
def PuissanceMoyenne(lstdistance):
|
||
|
"""fonction qui calcule la moyenne de distances entre les points """
|
||
|
lecture()
|
||
|
moy = sum() / len()
|