We know that kinetic energy is mathematically represented as $$E_k = \frac{1}{2} m v^2$$
Similarly, potential energy is defined as $$E_p = mg\Delta x$$
Considering these mechanical quantities in a system, is it possible to define them as multivariable functions such as
$$E(m, v)\ or \ E(m, \Delta x)$$
I know why this may be invalid, it is because they are simply equations defined physically. But, if we take either of the dependent variables as a non-constant, then I think that the multivariable definition is valid.