# Does a horizontal line represent a function?

I know that a vertical line has infinite outputs. For that it cannot be a function. What about horizontal lines? Because a horizontal line has only one output.

• We can define functions where the domain is an ordered set of objects and therefore more than one, for example two real numbers. Something which can have many different outs in a domain for the same input is sometimes called a manifold. – mathreadler Mar 13 '17 at 8:02

## 1 Answer

Yup. It represents a function that gives the same output no matter what input you give it. Usually written as $f(x)=a$ (so, for instance, $f(x)=5$ is one such function), and called a constant function.

• and what's the domain of it? – Steve Mar 13 '17 at 7:44
• @Steve Whatever you want it to be. For each domain and each codomain and each point / element in the codomain, there is exactly one constant function with that domain, codomain and output value. – Arthur Mar 13 '17 at 7:57