[Math] the difference between two real numbers

definitionreal numbers

Let $x$ and $y$ be real numbers. What does the difference between x and y mean?

  1. $|x-y|$ or $|y-x|$?
  2. $x-y$?
  3. $y-x$?

To me, only the first case makes any sense whatsoever. However, I cannot find a formal definition.

Best Answer

Difference between $x$ and $y$ means either $(x-y)$ or $(y-x)$. If nothing is mentioned any one the two can be considered.

Though in general, in most cases, absolute value should be taken, i.e., $|x-y|$ or $|y-x|$.