Distance between two points

The distance between two points A and B on the plane is the module of the fixed vector that determines: d(A,B)=|AB| In coordinates, if A=(a1,a2) and B=(b1,b2), then we have: d(A,B)=|AB|=|(b1a1,b2a2)|=(b1a1)2+(b2a2)2

Example

To calculate the distance between points A=(3,4) and B=(2,5). d(A,B)=|AB|=|(23,54)|=|(1,9)|=(1)2+(9)2=82