Functions
The value at is written . Two functions and are the same when , , and for every β even if the expressions look different. See Spivak (1967).
The graph is a set of pairs, not the rule:
A picture of that set in the plane is useful, but it is not the function. The function is the rule. I keep wanting to say βthe function is the curveβ; then I remember that two different-looking formulas can draw the same curve, and that some functions have no curve I can draw at all.
A first family
The identity given by is the dullest interesting example. A constant function given by forgets its input entirely. Absolute value is the first one that is not a single algebraic expression:
Each piece is a function on a smaller domain; glued together they still assign one output to each real . That is all I am asking for. At the two clauses agree, so there is no fight about the value.
def abs(x): return x if x >= 0 else -xThe picture is Figure 1.1, the table is Table 1.1, and the listing is Listing 1.1. All three are the same function (1.2), written three ways.
Domain is part of the data
The same formula on two domains is two functions. Restriction of to is the identity on that interval; restriction to is . I will need that distinction when I ask for an inverse.
I am not requiring a closed-form expression, and I am not requiring that the graph be drawable in one stroke. Continuity comes later. For now, a function may jump, or exist only on , or be defined by a different clause on each integer. The definition does not care.