Current location - Training Enrollment Network - Mathematics courses - What is the mathematical distance formula?
What is the mathematical distance formula?
The mathematical distance formula is the formula of the distance between two points. The distance formula between two points is often used to find the distance between two points and the coordinates of points in a function diagram, and it is one of the distance formulas. The distance formula between two points describes the relationship between points and the distance between points. Generally speaking, in order to define the distance function d(x, y) from a to b, the following criteria need to be met:

1, d(A, A)=0// The distance to yourself is 0.

2. d(A, B)>=0// The distance is not negative.

3.d(A, B)=d(B, A)// Symmetry: If the distance from A to B is A, then the distance from B to A should also be A.

4. d(A, C)+d(C, B)>=d(A, B)// Triangle rule: (the sum of two sides is greater than the third side).

In mathematics, distance is one of the most basic concepts in functional analysis. The distance space defined by it connects topological space with normed linear space and other spaces, and it is the first contact concept of learning functional analysis. Matlab mainly uses pdist function to calculate the distance. If x is an M×N matrix, pdist(X) takes each of the m rows of the x matrix as an n-dimensional vector, and then calculates the distance between the m vectors.