A function is a mathematical machine which accepts one or more numbers as inputs and provides a number as an output.