The absolute value of $x$ is defined as $x$ if $x>= 0$ and $-x$ otherwise.
But is it possible to define it without using logic? People say that $|x|=\sqrt{x^2},$ but that can give either $x$ or $-x.$ So maybe I can put the solutions to $\sqrt{x^2}$ in a tuple and refer to 2nd element, as $(-x, x)?$ So would this be correct?: $|x|=(\sqrt{x^2})_2$