From 2bc55f1835b71e061a2105c559720998eee484a4 Mon Sep 17 00:00:00 2001 From: Anil Bas Date: Sun, 18 Nov 2018 03:36:56 +0000 Subject: [PATCH] Updated mathematical definition of distance (#22027) --- .../mathematics/the-distance-formula/index.md | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/guide/english/mathematics/the-distance-formula/index.md b/guide/english/mathematics/the-distance-formula/index.md index 7b7529de5d..a9c451526b 100644 --- a/guide/english/mathematics/the-distance-formula/index.md +++ b/guide/english/mathematics/the-distance-formula/index.md @@ -4,5 +4,26 @@ title: The Distance Formula ## The Distance Formula -This formula can be used to calculate the distance between two points in a coordinate system, with (x1, y1) being the coordinates of one point and (x2, y2) being the coordinates of the other. +In analytic geometry, the distance between two points of the [xy-plane](https://en.wikipedia.org/wiki/Cartesian_coordinate_system) can be found using the distance formula. The distance between (*x*1, *y*1) and (*x*2, *y*2) is given by: + + +This formula is easily derived by constructing a right triangle with a leg on the hypotenuse of another (with the other leg orthogonal to the plane that contains the 1st triangle) and applying the Pythagorean theorem. +In the study of complicated geometries, we call this (most common) type of distance [Euclidean distance](https://en.wikipedia.org/wiki/Euclidean_distance), as it is derived from the [Pythagorean theorem](https://en.wikipedia.org/wiki/Pythagorean_theorem), which does not hold in non-Euclidean geometries. This distance formula can also be expanded into the arc-length formula. + +#### Distance in Euclidean space +In the [Euclidean space](https://en.wikipedia.org/wiki/Euclidean_space) **R**n, the distance between two points is usually given by the Euclidean distance (2-norm distance). Other distances, based on other norms, are sometimes used instead. + +The 2-norm distance is the Euclidean distance, a generalization of the Pythagorean theorem to more than two coordinates. It is what would be obtained if the distance between two points were measured with a ruler: the "intuitive" idea of distance. + +The 1-norm distance is more colourfully called the *taxicab norm* or taxicab geometry ([Manhattan distance](https://en.wikipedia.org/wiki/Taxicab_geometry)), because it is the distance a car would drive in a city laid out in square blocks (if there are no one-way streets). + +The infinity norm distance is also called [Chebyshev distance](https://en.wikipedia.org/wiki/Chebyshev_distance). In 2D, it is the minimum number of moves kings require to travel between two squares on a chessboard. + +The *p*-norm is rarely used for values of *p* other than 1, 2, and infinity, but see [super ellipse](https://en.wikipedia.org/wiki/Super_ellipse). + +In physical space the Euclidean distance is in a way the most natural one, because in this case the length of a rigid body does not change with rotation. + +#### More Information: + +[Wikipedia: Distance](https://en.wikipedia.org/wiki/Distance)