Mathematics · Ch 1 — Sets, Relations and Functions
Some Elementary Functions
1.6.2
Some Elementary Functions
Some function "shapes" are common enough to deserve their own names.
Identity function.f:X→X,f(x)=x for every x; denoted IX or I.
Constant function. For a fixed c∈Y, f:X→Y,f(x)=c for all x∈X -- the value never changes. If c=0, it is called the zero function (a special case of a constant function).
Modulus (absolute value) function.f:R→R,f(x)=∣x∣, where
∣x∣=⎩⎨⎧−x0xx<0x=0x>0(equivalently split at x≤0/x>0 or x<0/x≥0).
Signum function.f:R→R,f(x)={x/∣x∣0x=0x=0, written sgn(x); it only ever outputs −1,0,1.
Greatest integer (floor) function.f(x)=⌊x⌋, the greatest integer ≤x; e.g. ⌊151⌋=1, ⌊7.23⌋=7, ⌊−221⌋=−3 (not −2 -- rounding is always downward, even for negatives), ⌊6⌋=6, ⌊−4⌋=−4. …