Base class for all variable functions.
Initializes a new instance of the VariableFunction class.
Evaluates the function and returns the result.
This class should not normally be inherited directly; instead use ScalarVariableFunction or VectorVariableFunction.