{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $A$ be a set and let $A^3$ be the [[Cartesian product|09CEDJYBKP]] $A \\times A \\times A$.\nA *ternary operation* on $A$ is a [[finitary operation|EJ8YJVM9BW]] of arity $3$, that is, a [[function|0EPAT51DXQ]] $f \\colon A^3 \\to A$.\n\n## Remarks\n\nExample: on $\\R$, the map $m(x, y, z)$ that returns the middle value of $x, y, z$ is a ternary operation.\nIt is defined for every triple and its value is one of $x, y, z$, so it lies in $\\R$.\nIt satisfies $m(x, x, y) = m(x, y, x) = m(y, x, x) = x$.\n\nNon-example: the map $(x, y, z) \\mapsto x / (y - z)$ is not a ternary operation on $\\R$, because it is not defined when $y = z$.\n\nA ternary operation is usually written in prefix form $f(x, y, z)$, since there is no standard infix notation for three arguments.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "WC47MFR6GW",
    "kind": "definition",
    "msc": [
      "08A02",
      "08A62"
    ],
    "name": "Ternary operation",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Ternary_operation"
      }
    ],
    "tag": "E0QDPSKX3R",
    "uses": [
      "EJ8YJVM9BW",
      "0EPAT51DXQ",
      "09CEDJYBKP"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/E0QDPSKX3R/",
  "links": [
    {
      "field": "defines",
      "target": "WC47MFR6GW"
    },
    {
      "field": "uses",
      "target": "EJ8YJVM9BW"
    },
    {
      "field": "uses",
      "target": "0EPAT51DXQ"
    },
    {
      "field": "uses",
      "target": "09CEDJYBKP"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/E0QDPSKX3R.md",
  "msc": [
    "08A02",
    "08A62"
  ],
  "name": "Ternary operation",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/E0Q/E0QDPSKX3R.md",
  "status": null,
  "tag": "E0QDPSKX3R",
  "uri": "m2://E0QDPSKX3R",
  "url": "https://tamnd.github.io/math2/wiki/ternary-operation-definition/",
  "writing": {
    "tag": "E0QDPSKX3R",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      },
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
