Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> If you naively compute the distance between them using the familiar Euclidean formula √(a²+b²)

That formula may be familiar, but it doesn’t compute a distance.

A simple demonstration of why this is necessary is to consider the distance between the points 3 and 4. If you naively compute the distance between them using the familiar Euclidean formula √(a²+b²) you get:

√(3²+4²) = √(9+16) = √(25) = 5

That can't be right...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: