<s>[INST] How do I find the distance between two points? [/INST] You need to provide more context.
But if you are talking about two points in the plane you can use the Pythagoras theorem. d = ( ( x_2 - x_1 )^2 + ( y_2 - y_1 )^2 )^½
If you are talking about two points in a 3 dimensional space you will need a generalization of Pythagoras. d = ( ( x_2 - x_1 )^2 + ( y_2 - y_1)^2 + (z_2 - z_1)^2  )^½</s>\ <s>[INST] Thanks, but I was interested in the Manhattan distance. How can I compute it? [/INST] Considering two points in a plane with p1 at (x1, y1) and p2 at (x2, y2), the Manhattan distance between p1 and p2 is: |x1 - x2| + |y1 - y2|
Where | x | stands for the absolute value of x.</s>