Calculus I presents this definition of absolute value:
$$f(x)=y=|x|=\left\{\begin{array}{}\;\;\;x&\text{ if}\,\,\,x\geq 0\\-x&\text{ if}\,\,\,x<0\end{array}\right.$$
But you can also define absolute value as $$|x|= \sqrt{(\pm x)^2} $$
I can't think of any other ways to define it.
What are some other ways of defining the Absolute Value?
Please include what I might not have learned yet, i.e., definitions encountered in advanced classes. Thank you.
$|x|=x\text{sgn}(x) $,
where $\text{sgn}(x) = 1$ if $x>0$, $0$ if $x=0$, $-1$ if $x<0$.