{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "063W5JMY85"
    },
    {
      "field": "uses",
      "target": "07HF9YCWPP"
    },
    {
      "field": "uses",
      "target": "093CM69AGS"
    },
    {
      "field": "uses",
      "target": "0D2MXBV21T"
    },
    {
      "field": "uses",
      "target": "0DKRR22AEQ"
    },
    {
      "field": "uses",
      "target": "0E9GTAV478"
    },
    {
      "field": "uses",
      "target": "0F9JHP8AJN"
    },
    {
      "field": "uses",
      "target": "0FGCFY1AZX"
    },
    {
      "field": "uses",
      "target": "0FSNQ0GNCC"
    },
    {
      "field": "uses",
      "target": "0HTGB13FE2"
    },
    {
      "field": "uses",
      "target": "0PVG1CRAJN"
    },
    {
      "field": "uses",
      "target": "0Q3F20XB0A"
    },
    {
      "field": "uses",
      "target": "0QE5PFJY7V"
    },
    {
      "field": "uses",
      "target": "0VSB0XF4G7"
    },
    {
      "field": "uses",
      "target": "0WFF6AZPBP"
    },
    {
      "field": "uses",
      "target": "0XKH881BZ7"
    },
    {
      "field": "uses",
      "target": "0Y0KFHF47G"
    },
    {
      "field": "uses",
      "target": "0YXEQWRGP0"
    },
    {
      "field": "uses",
      "target": "0ZVHXDSZC7"
    },
    {
      "field": "uses",
      "target": "13JZKN6WKC"
    },
    {
      "field": "uses",
      "target": "27ZPTJP9PP"
    },
    {
      "field": "uses",
      "target": "2MM7AHFR2S"
    },
    {
      "field": "uses",
      "target": "3BBE4XY4E9"
    },
    {
      "field": "uses",
      "target": "42A2M9S2C1"
    },
    {
      "field": "uses",
      "target": "55W1M20Q3F"
    },
    {
      "field": "uses",
      "target": "8HSQHDNFEF"
    },
    {
      "field": "uses",
      "target": "91QMF4R1CY"
    },
    {
      "field": "uses",
      "target": "97DDM0ZBYG"
    },
    {
      "field": "uses",
      "target": "9BPQXY11NR"
    },
    {
      "field": "uses",
      "target": "9VN0XT2THJ"
    },
    {
      "field": "uses",
      "target": "A7549DJW1N"
    },
    {
      "field": "uses",
      "target": "A79PHYDXMW"
    },
    {
      "field": "uses",
      "target": "CYW8E2HTWN"
    },
    {
      "field": "uses",
      "target": "DN2MNQGN4S"
    },
    {
      "field": "uses",
      "target": "GVVG201079"
    },
    {
      "field": "uses",
      "target": "JCCTFJV9CN"
    },
    {
      "field": "uses",
      "target": "NTE5C260S1"
    },
    {
      "field": "uses",
      "target": "Q4TKABC1N2"
    },
    {
      "field": "uses",
      "target": "R8S00S3Z94"
    },
    {
      "field": "uses",
      "target": "SD649DT8VX"
    },
    {
      "field": "uses",
      "target": "TXTR68V4R1"
    },
    {
      "field": "uses",
      "target": "Y5CC9MSGYM"
    },
    {
      "field": "uses",
      "target": "YMGHNBDZCP"
    }
  ],
  "body": "\n## Definition\n\nLet $A$ and $B$ be [[sets|0SJ3RX9TXA]].\nA function from $A$ to $B$ is a [[binary relation|08EJC6Q25H]] $f \\subseteq A \\times B$ such that, for each $a \\in A$, there is exactly one $b \\in B$ with $(a, b) \\in f$.\nThis $b$ is the value of $f$ at $a$, written $f(a)$.\nThe notation $f \\colon A \\to B$ says that $f$ is a function from $A$ to $B$.\n\n## Remarks\n\nThe set $A$ is the [[domain|093CM69AGS]] and the set $B$ is the [[codomain|0F9JHP8AJN]] of $f$.\nMany authors take the triple $(A, B, f)$ as the function. Then two functions with the same pairs but different codomains are different.\nTwo functions $f, g \\colon A \\to B$ are equal when $f(a) = g(a)$ for each $a \\in A$.\nOther names are map and mapping.\n\n## Explanations\n\n### L1 human\n\nA function is a machine: you put in an element $a$ of $A$, and it gives back one element $f(a)$ of $B$.\nEach input gives exactly one output, but two inputs can give the same output.\nFor example, $f(x) = x^2$ on $\\mathbb{R}$ sends both $2$ and $-2$ to $4$.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "0EPAT51DXQ",
    "kind": "definition",
    "msc": [
      "03E20"
    ],
    "name": "Function",
    "sources": [
      {
        "locator": "lead section",
        "url": "https://en.wikipedia.org/wiki/Function_(mathematics)"
      }
    ],
    "tag": "0XHDTE5YMZ",
    "uses": [
      "08EJC6Q25H",
      "0N3ADS4CHH"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/0XHDTE5YMZ/",
  "links": [
    {
      "field": "defines",
      "target": "0EPAT51DXQ"
    },
    {
      "field": "uses",
      "target": "08EJC6Q25H"
    },
    {
      "field": "uses",
      "target": "0N3ADS4CHH"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/0XHDTE5YMZ.md",
  "msc": [
    "03E20"
  ],
  "name": "Function",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0XH/0XHDTE5YMZ.md",
  "status": null,
  "tag": "0XHDTE5YMZ",
  "uri": "m2://0XHDTE5YMZ",
  "url": "https://tamnd.github.io/math2/wiki/function-definition/",
  "writing": {
    "tag": "0XHDTE5YMZ",
    "kind": "definition",
    "level": "W1",
    "next": [
      {
        "what": "edge instance_of in",
        "note": "one example",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge not_instance_of in",
        "note": "one non-example that fails one clause",
        "have": 0,
        "want": 1
      }
    ]
  }
}
