More generally, a function maps a set called the domain to another set called the codomain (or range). The vertical line test only works for functions mapping an input of several variables to the number line, but for functions such as y = x^2, this will do. If the relation fails the vertical line test, it is not a function.