SUPPORT THE WORK

# GetWiki

### absolute difference

ARTICLE SUBJECTS
news  →
unix  →
wiki  →
ARTICLE TYPES
feed  →
help  →
wiki  →
ARTICLE ORIGINS
absolute difference
[ temporary import ]
- the content below is remote from Wikipedia
- it has been imported raw for GetWiki
{{Short description|absolute value of (x - y), a metric}}File:Absolute difference.svg|thumb|300px|right|Showing the absolute difference of real numbers x and y as the distance between them on the real linereal lineThe absolute difference of two real numbers x, y is given by |x âˆ’ y|, the absolute value of their difference. It describes the distance on the real line between the points corresponding to x and y. It is a special case of the Lp distance for all 1 â‰¤ p â‰¤ âˆž and is the standard metric used for both the set of rational numbers Q and their completion, the set of real numbers R.As with any metric, the metric properties hold:
• |x âˆ’ y| â‰¥ 0, since absolute value is always non-negative.
• |x âˆ’ y| = 0   if and only if   x = y.
• |x âˆ’ y| = |y âˆ’ x|     (symmetry or commutativity).
• |x âˆ’ z| â‰¤ |x âˆ’ y| + |y âˆ’ z|     (triangle inequality); in the case of the absolute difference, equality holds if and only if {{nowrap|xyz.}}
By contrast, simple subtraction is not non-negative or commutative, but it does obey the second and fourth properties above, since {{nowrap|x âˆ’ y {{=}} 0}} if and only if x = y, and {{nowrap|x âˆ’ z {{=}} (x âˆ’ y) + (y âˆ’ z).}}The absolute difference is used to define other quantities including the relative difference, the L1 norm used in taxicab geometry, and graceful labelings in graph theory.When it is desirable to avoid the absolute value function â€“ for example because it is expensive to compute, or because its derivative is not continuous â€“ it can sometimes be eliminated by the identity
|x âˆ’ y| < |z âˆ’ w| if and only if (x âˆ’ y)2 < (z âˆ’ w)2.
This follows since |x âˆ’ y|2 = (x âˆ’ y)2 and squaring is monotonic on the nonnegative reals.

## References

• {{MathWorld | urlname=AbsoluteDifference | title=Absolute Difference}}
{{Real numbers}}{{algebra-stub}}

- content above as imported from Wikipedia
- "absolute difference" does not exist on GetWiki (yet)
- time: 1:06pm EDT - Fri, May 24 2019
[ this remote article is provided by Wikipedia ]
LATEST EDITS [ see all ]
GETWIKI 09 MAY 2016
GETWIKI 18 OCT 2015
M.R.M. Parrott
Biographies
GETWIKI 20 AUG 2014
GETWIKI 19 AUG 2014
GETWIKI 18 AUG 2014
Wikinfo
Culture
CONNECT