Absolute difference
The absolute difference of two real numbers x {\displaystyle x} and y {\displaystyle y} is given by | x − y | {\displaystyle |x-y|} , the absolute value of their difference. It describes the distance on the real line between the points corresponding to x {\displaystyle x} and y {\displaystyle y} , and is a special case of the Lp distance for all 1 ≤ p ≤ ∞ {\displaystyle 1\leq p\leq \infty } .