Is there an option to let me assign the old function of f to g, without changing g when reassigning f?
This piece of code describes my problem:
f[x_] := x^2
f[2] (Output: 4)
g = f
g[2] (Output: 4)
f[x_] := x^3
f[2] (Output: 8)
g[2] (Output: 8)