up
This commit is contained in:
parent
912692a4ae
commit
34618150ad
12
Fonctions/distance _uclidienne.py
Normal file
12
Fonctions/distance _uclidienne.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
from math import *
|
||||||
|
|
||||||
|
def euclidienne(z1: float, y1: float, z2: float, y2: float):
|
||||||
|
x = sqrt((z2 - z1)**2 + (y2 - y1)**2)
|
||||||
|
return x
|
||||||
|
|
||||||
|
valZ1 = float(input())
|
||||||
|
valY1 = float(input())
|
||||||
|
valZ2 = float(input())
|
||||||
|
valY2 = float(input())
|
||||||
|
|
||||||
|
print(euclidienne(valZ1, valY1, valZ2, valY2))
|
Loading…
x
Reference in New Issue
Block a user