Absolute value

The standard absolute value function on the real numbers.
Absolute value

An absolute value is the function :R[0,)|\cdot|:\mathbb R\to[0,\infty) defined by

x={x,x0,x,x<0. |x|=\begin{cases} x,& x\ge 0,\\ -x,& x<0. \end{cases}

It is defined using the on R\mathbb R and measures distance via d(x,y)=xyd(x,y)=|x-y|, a basic example of a . Absolute value is built into ε\varepsilonδ\delta definitions such as the .

Examples:

  • 3=3|-3|=3 and 3=3|3|=3.
  • The distance between 22 and 55 in R\mathbb R is 25=3|2-5|=3.