Example:Table as a function
From CS2800 wiki
Another way to draw a function is with a table:
x | |
---|---|
a | 1 |
b | 1 |
c | 1 |
This almost describes a function; the domain is clearly (because if there were any other domain elements, would not be a function); and the rule is clear. However, the codomain is not clear: is it ? Or ? Or , or ? When describing a function with a table, the codomain should be specified somewhere.