1
0
Fork 0

task 01-04

This commit is contained in:
s441403 2018-05-13 10:04:52 +02:00
parent dd9587b180
commit bfde5771a7
1 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import math
"""
Napisz funkcję euclidean_distance obliczającą odległość między
dwoma punktami przestrzeni trójwymiarowej. Punkty dane jako
@ -10,7 +10,8 @@ np. odległość pomiędzy punktami (0, 0, 0) i (3, 4, 0) jest równa 5.
"""
def euclidean_distance(x, y):
pass
d= math.pow(x) + math.pow(y)
distance = math.sqrt(d)
def tests(f):
inputs = [[(2.3, 4.3, -7.5), (2.3, 8.5, -7.5)]]