Question: what is the function of independent and dependent variable?
Answer: A dependent variable represents a quantity whose value depends on those manipulations. In the context of a function, the independent variables are the inputs to the function and the dependent variables are the outputs of the function.