{
  "id": "enwiki-001350437448",
  "slug": "constant-function",
  "title": "Constant function",
  "qid": "",
  "lead": "In mathematics, a constant function is a function whose (output) value is the same for every input value.",
  "body": "In mathematics, a constant function is a function whose (output) value is the same for every input value. In the context where it is defined, the derivative of a function is a measure of the rate of change of function values with respect to change in input values. Because a constant function does not change, its derivative is 0. This is often written: (x \\mapsto c)' = 0 . The converse is also true. Namely, if for all real numbers , then is a constant function. For example, given the constant function The derivative of is the identically zero function For any non-empty , every set is isomorphic to the set of constant functions in X \\to Y . For any and each element in , there is a unique function \\tilde{y}: X \\to Y such that \\tilde{y}(x) = y for all x \\in X . Conversely, if a function f: X \\to Y satisfies f(x) = f(x') for all x, x' \\in X , f is by definition a constant function. As a corollary, the one-point set is a generator in the category of sets. Every set X is canonically isomorphic to the function set X^1 , or hom set \\operatorname{hom}(1,X) in the category of sets, where 1 is the one-point set. Because of this, and the adjunction between Cartesian products and hom in the category of sets (so there is a canonical isomorphism between functions of two variables and functions of one variable valued in functions of another (single) variable, \\operatorname{hom}(X \\times Y, Z) \\cong \\operatorname{hom}(X(\\operatorname{hom}(Y, Z)) ) the category of sets is a closed monoidal category with the Cartesian product of sets as tensor product and the one-point set as tensor unit. In the isomorphisms \\lambda: 1 \\times X \\cong X \\cong X \\times 1: \\rho natural in , the left and right unitors are the projections p_1 and p_2 the ordered pairs (*, x) and (x, *) respectively to the element x , where * is the unique point in the one-point set. A function on a connected set is locally constant if and only if it is constant.",
  "categories": [
    "20476460",
    "23118434",
    "23603337",
    "28269686",
    "29176310",
    "29265184"
  ],
  "license": "CC BY-SA 4.0",
  "source_uri": "https://en.wikipedia.org/w/index.php?oldid=1350437448",
  "content_hash": "",
  "created_at": null,
  "updated_at": 1776807028.0,
  "claims": [],
  "contradictions": [],
  "confidence": 0.6,
  "csl": {
    "id": "enwiki-001350437448",
    "type": "webpage",
    "title": "Constant function",
    "author": [
      {
        "family": "Anticloud FZ LLE",
        "literal": "Anticloud FZ LLE"
      }
    ],
    "container-title": "encyclopegia.org",
    "publisher": "Anticloud FZ LLE",
    "publisher-place": "Dubai, United Arab Emirates",
    "URL": "https://encyclopegia.org/a/constant-function",
    "issued": {
      "date-parts": [
        [
          2026,
          11,
          21
        ]
      ]
    },
    "accessed": {
      "date-parts": [
        [
          2026,
          11,
          21
        ]
      ]
    },
    "license": "CC BY-SA 4.0",
    "DOI": "eo1:enwiki-001350437448",
    "isBasedOn": "https://en.wikipedia.org/w/index.php?oldid=1350437448",
    "note": "Immutable snapshot enwiki-001350437448"
  }
}