Yes it is a function because each input has only one output.
In other words the x is not repeated.
5.8m questions
7.6m answers