Distance - wikipedia Distance This article is about distance in mathematics, physics, and computation. For other uses, see Distance ( disambiguation ). Distance is a numerical description of how far apart objects are. In physics or everyday usage, distance may refer to a physical length, or an estimation based on other criteria ( e.g. `` two counties over '' ). In most cases, `` distance from A to B '' is interchangeable with `` distance from B to A ''. In mathematics, a distance function or metric is a generalization of the concept of physical distance. A metric is a function that behaves according to a specific set of rules, and is a way of describing what it means for elements of some space to be `` close to '' or `` far away from '' each other. Contents 1 Overview and definitions 1.1 Physical distances 1.2 Theoretical distances 2 Distance versus directed distance and displacement 2.1 Directed distance 2.2 Displacement 3 Mathematics 3.1 Geometry 3.2 Distance in Euclidean space 3.3 Variational formulation of distance 3.4 Generalization to higher - dimensional objects 3.5 Algebraic distance 3.6 General metric 3.7 Distances between sets and between a point and a set 3.8 Graph theory 3.9 Other mathematical `` distances '' 4 See also 5 References Overview and definitions Physical distances Airline routes between Los Angeles and Tokyo approximately follow a direct great circle route ( top ), but use the jet stream ( bottom ) when heading eastwards. Note that the shortest route appears as a curve rather than a straight line because this map is a Mercator projection, which does not scale all distances equally compared to the real spherical surface of the Earth. `` Manhattan distance '' on a grid A physical distance can mean several different things : The length of a specific path traveled between two points, such as the distance walked while navigating a maze A board showing distances near Visakhapatnam The length of the shortest possible path through space between two point that could be taken if there were no obstacles ( usually formalized as Euclidean distance ) The length of the shortest path between two points while remaining on some surface, such as the great - circle distance along the curve of the Earth `` Circular distance '' is the distance traveled by a wheel, which can be useful when designing vehicles or mechanical gears. The circumference of the wheel is 2π × radius, and assuming the radius to be 1, then each revolution of the wheel is equivalent of the distance 2π radians. In engineering ω = 2πƒ is often used, where ƒ is the frequency. Unusual definitions of distance can be helpful to model certain physical situations, but are also used in theoretical mathematics : `` Manhattan distance '' is a rectilinear distance, named after the number of blocks north, south, east, or west a taxicab must travel on to reach its destination on the grid of streets in parts of New York City. `` Chessboard distance '', formalized as Chebyshev distance, is the minimum number of moves a king must make on a chessboard to travel between two squares. Distance measures in cosmology are complicated by the expansion of the universe, and by effects described by the theory of relativity such as length contraction of moving objects. Theoretical distances The term `` distance '' is also used by analogy to measure non-physical entities in certain ways. In computer science, there is the notion of the `` edit distance '' between two strings. For example, the words `` dog '' and `` dot '', which vary by only one letter, are closer than `` dog '' and `` cat '', which differ by three letters. This idea is used in spell checkers and in coding theory, and is mathematically formalized in several different ways, such as : Levenshtein distance Hamming distance Lee distance Jaro -- Winkler distance N - gram distance In mathematics, a metric space is a set for which distances between all members of the set are defined. In this way, many different types of `` distances '' can be calculated, such as for traversal of graphs, comparison of distributions and curves, and using unusual definitions of `` space '' ( for example using a manifold or reflections ). The notion of distance in graph theory has been used to describe social networks, for example with the Erdős number or the Bacon number, the number of collaborative relationships away a person is from prolific mathematician Paul Erdős or actor Kevin Bacon, respectively. In psychology, human geography, and the social sciences, distance is often theorized not as an objective metric, but as a subjective experience. Distance versus directed distance and displacement Distance along a path compared with displacement Distance can not be negative, and distance travelled never decreases. Distance is a scalar quantity or a magnitude, whereas displacement is a vector quantity with both magnitude and direction. Directed distance is a positive, zero, or negative scalar quantity. The distance covered by a vehicle ( for example as recorded by an odometer ), person, animal, or object along a curved path from a point A to a point B should be distinguished from the straight - line distance from A to B. For example, whatever the distance covered during a round trip from A to B and back to A, the displacement is zero as start and end points coincide. In general the straight - line distance does not equal distance travelled, except for journeys in a straight line. Directed distance Directed distances are distances with a directional sense. They can be determined along straight lines and along curved lines. A directed distance of a point C from point A in the direction of B on a line AB in a Euclidean vector space is the distance from A to C if C falls on the ray AB, but is the negative of that distance if C falls on the ray BA ( I.e., if C is not on the same side of A as B is ). A directed distance along a curved line is not a vector and is represented by a segment of that curved line defined by endpoints A and B, with some specific information indicating the sense ( or direction ) of an ideal or real motion from one endpoint of the segment to the other ( see figure ). For instance, just labelling the two endpoints as A and B can indicate the sense, if the ordered sequence ( A, B) is assumed, which implies that A is the starting point. Displacement A displacement ( see above ) is a special kind of directed distance defined in mechanics. A directed distance is called displacement when it is the distance along a straight line ( minimum distance ) from A and B, and when A and B are positions occupied by the same particle at two different instants of time. This implies motion of the particle. The distance traveled by a particle must always be greater than or equal to its displacement, with equality occurring only when the particle moves along a straight path. Another kind of directed distance is that between two different particles or point masses at a given time. For instance, the distance from the center of gravity of the Earth A and the center of gravity of the Moon B ( which does not strictly imply motion from A to B) falls into this category. Mathematics See also : Metric ( mathematics ) Geometry In analytic geometry, the distance between two points of the xy - plane can be found using the distance formula. The distance between ( x, y ) and ( x, y ) is given by : d = ( Δ x ) 2 + ( Δ y ) 2 = ( x 2 − x 1 ) 2 + ( y 2 − y 1 ) 2. ( displaystyle d = ( sqrt ( ( Delta x ) ^ ( 2 ) + ( Delta y ) ^ ( 2 ) ) ) = ( sqrt ( ( x_ ( 2 ) - x_ ( 1 ) ) ^ ( 2 ) + ( y_ ( 2 ) - y_ ( 1 ) ) ^ ( 2 ) ) ). ) Similarly, given points ( x, y, z ) and ( x, y, z ) in three - space, the distance between them is : d = ( Δ x ) 2 + ( Δ y ) 2 + ( Δ z ) 2 = ( x 2 − x 1 ) 2 + ( y 2 − y 1 ) 2 + ( z 2 − z 1 ) 2. ( displaystyle d = ( sqrt ( ( Delta x ) ^ ( 2 ) + ( Delta y ) ^ ( 2 ) + ( Delta z ) ^ ( 2 ) ) ) = ( sqrt ( ( x_ ( 2 ) - x_ ( 1 ) ) ^ ( 2 ) + ( y_ ( 2 ) - y_ ( 1 ) ) ^ ( 2 ) + ( z_ ( 2 ) - z_ ( 1 ) ) ^ ( 2 ) ) ). ) These formula are 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, 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. Distance in Euclidean space In the Euclidean space R, 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 ( x, x,..., x ) and a point ( y, y,..., y ), the Minkowski distance of order p ( p - norm distance ) is defined as : 1 - norm distance = ∑ i = 1 n x i − y i ( displaystyle = sum _ ( i = 1 ) ^ ( n ) left x_ ( i ) - y_ ( i ) \right ) 2 - norm distance = ( ∑ i = 1 n x i − y i 2 ) 1 / 2 ( displaystyle = left ( sum _ ( i = 1 ) ^ ( n ) left x_ ( i ) - y_ ( i ) \right ^ ( 2 ) \right ) ^ ( 1 / 2 ) ) p - norm distance = ( ∑ i = 1 n x i − y i p ) 1 / p ( displaystyle = left ( sum _ ( i = 1 ) ^ ( n ) left x_ ( i ) - y_ ( i ) \right ^ ( p ) \right ) ^ ( 1 / p ) ) infinity norm distance = lim p → ∞ ( ∑ i = 1 n x i − y i p ) 1 / p ( displaystyle = lim _ ( p \to infty ) left ( sum _ ( i = 1 ) ^ ( n ) left x_ ( i ) - y_ ( i ) \right ^ ( p ) \right ) ^ ( 1 / p ) ) = max ( x 1 − y 1, x 2 − y 2,..., x n − y n ). ( displaystyle = max left ( x_ ( 1 ) - y_ ( 1 ), x_ ( 2 ) - y_ ( 2 ), ldots, x_ ( n ) - y_ ( n ) \right ). ) p need not be an integer, but it can not 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 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. 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. Variational formulation of distance The Euclidean distance between two points in space ( A = r → ( 0 ) ( displaystyle A = ( \vec ( r ) ) ( 0 ) ) and B = r → ( T ) ( displaystyle B = ( \vec ( r ) ) ( T ) ) ) may be written in a variational form where the distance is the minimum value of an integral : D = ∫ 0 T ( ∂ r → ( t ) ∂ t ) 2 d t ( displaystyle D = int _ ( 0 ) ^ ( T ) ( sqrt ( left ( ( partial ( \vec ( r ) ) ( t ) over partial t ) \right ) ^ ( 2 ) ) ) , dt ) Here r → ( t ) ( displaystyle ( \vec ( r ) ) ( t ) ) is the trajectory ( path ) between the two points. The value of the integral ( D ) represents the length of this trajectory. The distance is the minimal value of this integral and is obtained when r = r ∗ ( displaystyle r = r ^ ( * ) ) where r ∗ ( displaystyle r ^ ( * ) ) is the optimal trajectory. In the familiar Euclidean case ( the above integral ) this optimal trajectory is simply a straight line. It is well known that the shortest path between two points is a straight line. Straight lines can formally be obtained by solving the Euler -- Lagrange equations for the above functional. In non-Euclidean manifolds ( curved spaces ) where the nature of the space is represented by a metric tensor g a b ( displaystyle g_ ( ab ) ) the integrand has to be modified to g a c r  ̇ c g a b r  ̇ b ( displaystyle ( sqrt ( g ^ ( ac ) ( dot ( r ) ) _ ( c ) g_ ( ab ) ( dot ( r ) ) ^ ( b ) ) ) ), where Einstein summation convention has been used. Generalization to higher - dimensional objects The Euclidean distance between two objects may also be generalized to the case where the objects are no longer points but are higher - dimensional manifolds, such as space curves, so in addition to talking about distance between two points one can discuss concepts of distance between two strings. Since the new objects that are dealt with are extended objects ( not points anymore ) additional concepts such as non-extensibility, curvature constraints, and non-local interactions that enforce non-crossing become central to the notion of distance. The distance between the two manifolds is the scalar quantity that results from minimizing the generalized distance functional, which represents a transformation between the two manifolds : D = ∫ 0 L ∫ 0 T ( ( ∂ r → ( s, t ) ∂ t ) 2 + λ ( ( ∂ r → ( s, t ) ∂ s ) 2 − 1 ) ) d s d t ( displaystyle ( mathcal ( D ) ) = int _ ( 0 ) ^ ( L ) int _ ( 0 ) ^ ( T ) left ( ( sqrt ( left ( ( partial ( \vec ( r ) ) ( s, t ) over partial t ) \right ) ^ ( 2 ) ) ) + lambda left ( ( sqrt ( left ( ( partial ( \vec ( r ) ) ( s, t ) over partial s ) \right ) ^ ( 2 ) ) ) - 1 \right ) \right ) , ds , dt ) The above double integral is the generalized distance functional between two polymer conformation. s ( displaystyle s ) is a spatial parameter and t ( displaystyle t ) is pseudo-time. This means that r → ( s, t = t i ) ( displaystyle ( \vec ( r ) ) ( s, t = t_ ( i ) ) ) is the polymer / string conformation at time t i ( displaystyle t_ ( i ) ) and is parameterized along the string length by s ( displaystyle s ). Similarly r → ( s = S, t ) ( displaystyle ( \vec ( r ) ) ( s = S, t ) ) is the trajectory of an infinitesimal segment of the string during transformation of the entire string from conformation r → ( s, 0 ) ( displaystyle ( \vec ( r ) ) ( s, 0 ) ) to conformation r → ( s, T ) ( displaystyle ( \vec ( r ) ) ( s, T ) ). The term with cofactor λ ( displaystyle lambda ) is a Lagrange multiplier and its role is to ensure that the length of the polymer remains the same during the transformation. If two discrete polymers are inextensible, then the minimal - distance transformation between them no longer involves purely straight - line motion, even on a Euclidean metric. There is a potential application of such generalized distance to the problem of protein folding This generalized distance is analogous to the Nambu -- Goto action in string theory, however there is no exact correspondence because the Euclidean distance in 3 - space is inequivalent to the spacetime distance minimized for the classical relativistic string. Algebraic distance This section needs expansion. You can help by adding to it. ( December 2008 ) This is a metric often used in computer vision that can be minimized by least squares estimation. ( 1 ) ( 2 ) For curves or surfaces given by the equation x T C x = 0 ( displaystyle x ^ ( \text ( T ) ) Cx = 0 ) ( such as a conic in homogeneous coordinates ), the algebraic distance from the point x ′ ( displaystyle x ' ) to the curve is simply x ′ T C x ′ ( displaystyle x ' ^ ( \text ( T ) ) Cx ' ). It may serve as an `` initial guess '' for geometric distance to refine estimations of the curve by more accurate methods, such as non-linear least squares. General metric 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 ). Such a distance function is known as a metric. Together with the set, it makes up a metric space. 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 can not be arbitrarily close. Distances between sets and between a point and a set d ( A, B) > d ( A, C ) + d ( C, B) 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 low earth orbit, 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 metric space : 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 everyday meaning of the word, i.e. d ( A, B ) = inf x ∈ A, y ∈ B d ( x, y ). ( displaystyle d ( A, B ) = inf _ ( x in A, y in B ) d ( x, y ). ) This is a symmetric premetric. 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. The distance between a point and a set is the infimum of the distances between the point and those in the set. This corresponds to the distance, according to the first - mentioned definition above of the distance between sets, from the set containing only this point to the other set. 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. Graph theory In graph theory the distance between two vertices is the length of the shortest path between those vertices. Other mathematical `` distances '' Canberra distance -- a weighted version of Manhattan distance, used in computer science Energy distance, the statistical distance between probability distributions Kullback -- Leibler divergence, which measures the difference between two probability distributions Mahalanobis distance is used in statistics See also Wikiquote has quotations related to : Distance Astronomical system of units Cosmic distance ladder Distance geometry problem Dijkstra 's algorithm Distance matrix Distance measuring equipment ( DME ) Distance - based road exit numbers Engineering tolerance Length Meridian arc Milestone Orders of magnitude ( length ) Proper length Proxemics -- physical distance between people Rangefinder Signed distance function References Notes Jump up ^ Simandan, Dragos ( 2016 ). `` Proximity, subjectivity, and space : Rethinking distance in human geography ''. Geoforum. 75 : 249. doi : 10.1016 / j. geoforum. 2016.07. 018. Jump up ^ SS Plotkin, PNAS. 2007 ; 104 : 14899 -- 14904, Jump up ^ AR Mohazab, SS Plotkin, `` Minimal Folding Pathways for Coarse - Grained Biopolymer Fragments '' Biophysical Journal, Volume 95, Issue 12, Pages 5496 -- 5507 Sources Deza, E. ; Deza, M. ( 2006 ), Dictionary of Distances, Elsevier, ISBN 0 - 444 - 52087 - 2. Kinematics ← Integrate... Differentiate → Absement Displacement ( Distance ) Velocity ( Speed ) Acceleration Jerk Jounce Retrieved from `` https://en.wikipedia.org/w/index.php?title=Distance&oldid=815310005 '' Categories : Length Elementary mathematics Metric geometry Hidden categories : Articles to be expanded from December 2008 All articles to be expanded Articles using small message boxes Talk Contents About Wikipedia Wikiquote Wikiversity Afrikaans አማርኛ Aragonés Asturianu Azərbaycanca বাংলা Bân - lâm - gú Беларуская Беларуская ( тарашкевіца ) ‎ Български Català Čeština ChiShona Dansk Deutsch Eesti Ελληνικά Español Esperanto Euskara فارسی Français Galego 한국어 Hrvatski Ido Bahasa Indonesia Interlingua IsiXhosa Íslenska Italiano עברית Къарачай - малкъар ქართული Қазақша Kiswahili Kreyòl ayisyen Kurdî Кыргызча Latviešu Lëtzebuergesch Limburgs Magyar मराठी Bahasa Melayu မြန်မာဘာသာ Nederlands 日本 語 Norsk Norsk nynorsk Oʻzbekcha / ўзбекча ਪੰਜਾਬੀ پښتو Polski Português Русский Scots Shqip Simple English Slovenčina Slovenščina کوردی Suomi Svenska Tagalog தமிழ் తెలుగు ไทย Тоҷикӣ Türkçe Українська اردو Vèneto Tiếng Việt 文言 Winaray Xitsonga ייִדיש 粵語 中文 Edit links This page was last edited on 14 December 2017, at 02 : 45. Text is available under the Creative Commons Attribution - ShareAlike License ; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia ® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization. About Wikipedia

Question: the length and direction of a straight line between two locations or positions
Answer: displacement; displacement