{
  "aliases": [
    "absolute-difference"
  ],
  "backlinks": null,
  "body": "\n## Example\n\nOn the set $\\mathbb{R}$ of [[real numbers|08J2M1JYAG]], let\n$$d(x, y) = |x - y|,$$\nwhere $|\\cdot|$ is the [[absolute value|00S7C68D51]].\nThen $d$ is a [[metric|063W5JMY85]] on $\\mathbb{R}$.\nThe [[triangle inequality|03HF5PMY5T]] for real numbers gives the triangle inequality for $d$.\n\n## Remarks\n\nThe number $|x - y|$ is the absolute difference of $x$ and $y$.\nThis metric is the case $n = 1$ of the [[Euclidean metric|0E1MMCAY5B]].\nThe same formula with the [[modulus|0KW2X0TFBX]] gives a metric on the complex numbers.\n\n## Explanations\n\n### L1 human\n\nThe distance between two numbers is the length of the segment between them on the number line.\nFor example, the distance between $-2$ and $3$ is $|-2 - 3| = 5$.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "aliases": [
      "absolute-difference"
    ],
    "instance_of": [
      "0VKD1TP7F3"
    ],
    "kind": "example",
    "msc": [
      "54E35"
    ],
    "name": "Usual metric on the real line",
    "same_as": {
      "wikidata": "Q1773230",
      "wikipedia": "Absolute difference"
    },
    "sources": [
      {
        "locator": "lead section",
        "url": "https://en.wikipedia.org/wiki/Absolute_difference"
      }
    ],
    "tag": "0KXJTZSW9B"
  },
  "kind": "example",
  "link": "https://math2.tamnd.com/node/0KXJTZSW9B/",
  "links": [
    {
      "field": "instance_of",
      "target": "0VKD1TP7F3"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0KXJTZSW9B.md",
  "msc": [
    "54E35"
  ],
  "name": "Usual metric on the real line",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0KX/0KXJTZSW9B.md",
  "status": null,
  "tag": "0KXJTZSW9B",
  "uri": "m2://0KXJTZSW9B",
  "url": "https://math2.tamnd.com/wiki/usual-metric-on-the-real-line/",
  "writing": {
    "tag": "0KXJTZSW9B",
    "kind": "example",
    "level": "W2",
    "next": [
      {
        "what": "a person confirmed each agent-written section",
        "note": "rule P04",
        "have": 0,
        "want": 1
      }
    ]
  }
}
