Discrete Functions
Functions on separated input sets
A discrete function is defined on inputs that come in separate values, often a finite set or a subset of the integers. The domain is part of the definition. A rule can be algebraically meaningful beyond that domain without being a defined value of the particular discrete function.
Tables, formulas with a specified integer domain, and lists of ordered pairs are common representations. The defining test for a function is that every allowed input has exactly one output. Multiple inputs may share the same output; that affects one-to-one behavior, not whether the mapping is a function.
Keep domain, codomain, and range distinct. The codomain is the declared target set, while the range is the output set actually attained. These distinctions help prevent accidental extension of a rule from allowed discrete inputs to every real number.
A function is defined by f(n)=2n-1 for n in {0,1,2,3}. Which evaluation is defined?
A table gives k: 2, 4, 6 and r(k): 9, 1, 9. What is r(4)?