replaceArgument(f, s1, s2)

Replaces argument s1 with argument s2 in function f.


See also simplify compose 


Example


f(x, y) = x*3 + y

f(x, y) = x*3 + y

g = replaceArgument(f, "x", "t")

g(t, y) = t*3 + y