finding euclidean distance,better code?
Steven D'Aprano
steve at REMOVE-THIS-cybersource.com.au
Fri Mar 28 21:09:46 EDT 2008
On Fri, 28 Mar 2008 16:59:59 +0100, Robert Bossy wrote:
> Gabriel Genellina wrote:
>> That's what I said in another paragraph. "sum of coordinates" is using
>> a different distance definition; it's the way you measure distance in a
>> city with square blocks. I don't know if the distance itself has a
>> name, but
> I think it is called Manhattan distance in reference of the walking
> distance from one point to another in this city.
You know, there are other cities than Manhattan. Some of them even have
streets and blocks.
--
Steven
More information about the Python-list
mailing list