Y
Hacker News
new
|
ask
|
show
|
jobs
by
nokan
602 days ago
you are calculating inner product of otrhogonal vectors. For distance it should be abs(a-b) it will result to sqrt(2).