a diagram of a function