Information about Distance
This article is about distance in the mathematical or physical sense. For other senses of the term, see distance (disambiguation).
Distance is a numerical description of how far apart objects are at any given moment in time. In physics or everyday discussion, distance may refer to a physical length, a period of time, or an estimation based on other criteria (e.g. "two counties over"). In mathematics, distance must meet more rigorous criteria.
In most cases there is symmetry and "distance from A to B" is interchangeable with "distance between A and B".
Mathematics
- See also:
Geometry
In neutral geometry, the minimum distance between two points is the length of the line segment between them.In analytic geometry, one can find the distance between two points of the xy-plane using the distance formula. The distance between (x1, y1) and (x2, y2) is given by
Similarly, given points (x1, y1, z1) and (x2, y2, z2) in three-space, the distance between them is
In the study of complicated geometries, we call this (most common) type of distance Euclidean distance, as it is derived from the Pythagorean theorem, which does not hold in Non-Euclidean geometries. This distance formula can also be expanded into the arc-length formula.
In pseudo code the common distance formula is written like this: square_root( power(x2-x1, 2) + power(y2-y1, 2) );
Distance in Euclidean space
In the Euclidean space Rn, 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.For a point (x1, x2, ...,xn) and a point (y1, y2, ...,yn), the Minkowski distance of order p (p-norm distance) is defined as:
| 1-norm distance | ![]() |
| 2-norm distance | ![]() |
| p-norm distance | ![]() |
| infinity norm distance | ![]() |
![]() |
p need not be an integer, but it cannot be less than 1, because otherwise the triangle inequality does not hold.
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 Manhattan distance, 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. In 2D it represents the distance kings must 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.
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.
General case
In mathematics, in particular geometry, a distance function on a given set M is a function d: M×M → R, where R denotes the set of real numbers, that satisfies the following conditions:- d(x,y) ≥ 0, and d(x,y) = 0 if and only if x = y. (Distance is positive between two different points, and is zero precisely from a point to itself.)
- It is symmetric: d(x,y) = d(y,x). (The distance between x and y is the same in either direction.)
- It satisfies the triangle inequality: d(x,z) ≤ d(x,y) + d(y,z). (The distance between two points is the shortest distance along any path).
For example, the usual definition of distance between two real numbers x and y is: d(x,y) = |x − y|. This definition satisfies the three conditions above, and corresponds to the standard topology of the real line. But distance on a given set is a definitional choice. Another possible choice is to define: d(x,y) = 0 if x = y, and 1 otherwise. This also defines a metric, but gives a completely different topology, the "discrete topology"; with this definition numbers cannot be arbitrarily close.
Distances between sets and between a point and a set
Various distance definitions are possible between objects. For example, between celestial bodies one should not confuse the surface-to-surface distance and the center-to-center distance. If the former is much less than the latter, as for a LEO, the first tends to be quoted (altitude), otherwise, e.g. for the Earth-Moon distance, the latter.There are two common definitions for the distance between two non-empty subsets of a given set:
- One version of distance between two non-empty sets is the infimum of the distances between any two of their respective points, which is the every-day meaning of the word. This is a symmetric prametric. On a collection of sets of which some touch or overlap each other, it is not "separating", because the distance between two different but touching or overlapping sets is zero. Also it is not hemimetric, i.e., the triangle inequality does not hold, except in special cases. Therefore only in special cases this distance makes a collection of sets a metric space.
- The Hausdorff distance is the larger of two values, one being the supremum, for a point ranging over one set, of the infimum, for a second point ranging over the other set, of the distance between the points, and the other value being likewise defined but with the roles of the two sets swapped. This distance makes the set of non-empty compact subsets of a metric space itself a metric space.
In terms of this, the definition of the Hausdorff distance can be simplified: it is the larger of two values, one being the supremum, for a point ranging over one set, of the distance between the point and the set, and the other value being likewise defined but with the roles of the two sets swapped.
Distance versus displacement
Distance cannot be negative. Distance is a scalar quantity, containing only a magnitude, whereas displacement is an equivalent vector quantity containing both magnitude and direction.The distance covered by a vehicle (often recorded by an odometer), person, animal, object, etc. should be distinguished from the distance from starting point to end point, even if latter is taken to mean e.g. the shortest distance along the road, because a detour could be made, and the end point can even coincide with the starting point.
Other "distances"
- Mahalanobis distance is used in statistics.
- Hamming distance is used in coding theory.
- Levenshtein distance
- Chebyshev distance
See also
- Taxicab geometry
- astronomical units of length
- cosmic distance ladder
- comoving distance
- distance geometry
- distance (graph theory)
- Dijkstra's algorithm
- distance-based road exit numbers
- Distance Measuring Equipment (DME)
- great-circle distance
- length
- milestone
- Metric (mathematics)
- Metric space
- orders of magnitude (length)
- Proper length
- distance matrix
- hamming distance
- proxemics - physical distance between people
References
External links
- Distance between geographic coordinates for any planet of the Solar System
Mathematics (colloquially, maths or math) is the body of knowledge centered on such concepts as quantity, structure, space, and change, and also the academic discipline that studies them. Benjamin Peirce called it "the science that draws necessary conclusions".
..... Read more.
..... Read more.
Physics is the science of matter[1] and its motion[2][3], as well as space and time[4][5] —the science that deals with concepts such as force, energy, mass, and charge.
..... Read more.
..... Read more.
Distance may refer to:
..... Read more.
- Distance in the mathematical and physical sense.
- Distance (band), a late-1980s rock supergroup featuring Bernard Edwards and Tony Thompson
..... Read more.
Physics is the science of matter[1] and its motion[2][3], as well as space and time[4][5] —the science that deals with concepts such as force, energy, mass, and charge.
..... Read more.
..... Read more.
Mathematics (colloquially, maths or math) is the body of knowledge centered on such concepts as quantity, structure, space, and change, and also the academic discipline that studies them. Benjamin Peirce called it "the science that draws necessary conclusions".
..... Read more.
..... Read more.
Absolute geometry is a geometry based on an axiom system that does not assume the parallel postulate or any of its alternatives. The term was introduced by János Bolyai in 1832.
..... Read more.
..... Read more.
line can be described as an ideal zero-width, infinitely long, perfectly straight curve (the term curve in mathematics includes "straight curves") containing an infinite number of points. In Euclidean geometry, exactly one line can be found that passes through any two points.
..... Read more.
..... Read more.
Analytic geometry, also called coordinate geometry and earlier referred to as Cartesian geometry or analytical geometry, is the study of geometry using the principles of algebra.
..... Read more.
..... Read more.
Cartesian coordinate system (also called rectangular coordinate system) is used to determine each point uniquely in a plane through two numbers, usually called the x-coordinate and the y-coordinate of the point.
..... Read more.
..... Read more.
Cartesian coordinate system (also called rectangular coordinate system) is used to determine each point uniquely in a plane through two numbers, usually called the x-coordinate and the y-coordinate of the point.
..... Read more.
..... Read more.
hypotenuse of a right triangle is the triangle's longest side; the side opposite the right angle. The length of the hypotenuse of a right triangle can be found using the Pythagorean theorem, which states that the square of the length of the hypotenuse equals the sum of the squares
..... Read more.
..... Read more.
In mathematics, orthogonal, as a simple adjective, not part of a longer phrase, is a generalization of perpendicular. It means at right angles, from the Greek ὀρθός orthos
..... Read more.
..... Read more.
plane is a two-dimensional manifold or surface that is perfectly flat. Informally it can be thought of as an infinitely vast and infinitesimally thin sheet oriented in some space.
..... Read more.
..... Read more.
In mathematics, the Pythagorean theorem (AmE) or Pythagoras' theorem (BrE) is a relation in Euclidean geometry among the three sides of a right triangle. The theorem is named after the Greek mathematician Pythagoras, who by tradition is credited with its discovery and
..... Read more.
..... Read more.
In mathematics, the Euclidean distance or Euclidean metric is the "ordinary" distance between two points that one would measure with a ruler, which can be proven by repeated application of the Pythagorean theorem.
..... Read more.
..... Read more.
In mathematics, the Pythagorean theorem (AmE) or Pythagoras' theorem (BrE) is a relation in Euclidean geometry among the three sides of a right triangle. The theorem is named after the Greek mathematician Pythagoras, who by tradition is credited with its discovery and
..... Read more.
..... Read more.
non-Euclidean geometry describes hyperbolic and elliptic geometry, which are contrasted with Euclidean geometry. The essential difference between Euclidean and non-Euclidean geometry is the nature of parallel lines.
..... Read more.
..... Read more.
formula (plural: formulae, formulæ or formulas) is a concise way of expressing information symbolically (as in a mathematical or chemical formula), or a general relationship between quantities.
..... Read more.
..... Read more.
Determining the length of an irregular arc segment—also called rectification of a curve—was historically difficult. Although many methods were used for specific curves, the advent of calculus led to a general formula that provides closed-form solutions in some cases.
..... Read more.
..... Read more.
Pseudocode (derived from pseudo and code) is a compact and informal high-level description of a computer programming algorithm that uses the structural conventions of programming languages, but omits detailed subroutines, variable declarations or language-specific syntax.
..... Read more.
..... Read more.
Euclidean space. Most of this article is devoted to developing the modern language necessary for the conceptual leap to higher dimensions.
An essential property of a Euclidean space is its flatness. Other spaces exist in geometry that are not Euclidean.
..... Read more.
An essential property of a Euclidean space is its flatness. Other spaces exist in geometry that are not Euclidean.
..... Read more.
In mathematics, the Euclidean distance or Euclidean metric is the "ordinary" distance between two points that one would measure with a ruler, which can be proven by repeated application of the Pythagorean theorem.
..... Read more.
..... Read more.
In linear algebra, functional analysis and related areas of mathematics, a norm is a function which assigns a positive length or size to all vectors in a vector space, other than the zero vector.
..... Read more.
..... Read more.
In mathematics, the Euclidean distance or Euclidean metric is the "ordinary" distance between two points that one would measure with a ruler, which can be proven by repeated application of the Pythagorean theorem.
..... Read more.
..... Read more.
In mathematics, the Pythagorean theorem (AmE) or Pythagoras' theorem (BrE) is a relation in Euclidean geometry among the three sides of a right triangle. The theorem is named after the Greek mathematician Pythagoras, who by tradition is credited with its discovery and
..... Read more.
..... Read more.
coordinate system is a system for assigning an n-tuple of numbers or scalars to each point in an n-dimensional space. "Scalars" in many cases means real numbers, but, depending on context, can mean complex numbers or elements of some other commutative ring.
..... Read more.
..... Read more.
- This article is about the drawing and measuring instrument. Ruler can also refer to a statesman in charge or ceremonial head of state of a country or minor politically significant principality; for this meaning see Monarch or Lists of incumbents.
..... Read more.
Taxicab geometry, considered by Hermann Minkowski in the 19th century, is a form of geometry in which the usual metric of Euclidean geometry is replaced by a new metric in which the distance between two points is the sum of the (absolute) differences of their coordinates.
..... Read more.
..... Read more.
Chebyshev distance (or Tchebychev distance) is a metric defined on a vector space where the distance between two vectors is the greatest of their differences along any coordinate dimension.[1] It is named after Pafnuty Chebyshev.
..... Read more.
..... Read more.
King (♔ ♚) is the most important piece. The object of the game is to capture the opponent's king. If a player's king is threatened with capture, it is said to be in check, and the player must move so as to remove the threat of capture.
..... Read more.
..... Read more.







