Compare commits
4 Commits
4bf594898e
...
36007d76da
Author | SHA1 | Date |
---|---|---|
amaury-charl.reyt | 36007d76da | 3 years ago |
amaury-charl.reyt | f3c0561ba0 | 3 years ago |
amaury-charl.reyt | 726a9536c8 | 3 years ago |
amaury-charl.reyt | c01c3b6bb1 | 3 years ago |
3 changed files with 24 additions and 6 deletions
Binary file not shown.
@ -0,0 +1,16 @@ |
|||||
|
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() |
Loading…
Reference in new issue