finding euclidean distance,better code?

harryos oswald.harry at gmail.com
Fri Mar 28 16:15:48 CET 2008


> The code is pretty legible as it is now. Anyway, using min() and a
> generator:
>
>

hi
is this calculated distance really Euclidean distance? When i checked
wikipedia http://en.wikipedia.org/wiki/Euclidean_distance
it shows a calculation involving sum of squares of the differences of
elements.Here in this code ,the sum of coordinates are used? is that a
different measure?

oharry



More information about the Python-list mailing list