logoalt Hacker News

djaouenlast Monday at 3:20 AM1 replyview on HN

Squares are preferred because that is the same as minimizing Euclidean Distance, which is defined as sqrt((x2-x1)^2).


Replies

lucketonelast Monday at 8:30 AM

sqrt((x2-x1)^2) == x2-x1

I think you meant sqrt(x^2+y^2)

show 1 reply