z1, z2, z3, z4, z5
This commit is contained in:
parent
72eb9d01e2
commit
b67a851e9d
@ -10,7 +10,12 @@ np. odległość pomiędzy punktami (0, 0, 0) i (3, 4, 0) jest równa 5.
|
||||
"""
|
||||
|
||||
def euclidean_distance(x, y):
|
||||
pass
|
||||
l = [x,y]
|
||||
edl = []
|
||||
for c1 in range(3):
|
||||
edl.append(l[0][c1] - l[1][c1])
|
||||
edl2 = [i**2 for i in edl]
|
||||
return ( sum(edl2) ) ** 0.5
|
||||
|
||||
def tests(f):
|
||||
inputs = [[(2.3, 4.3, -7.5), (2.3, 8.5, -7.5)]]
|
||||
|
Loading…
Reference in New Issue
Block a user