How to... equations and functions



(%i1) e:x+3=2*x-2$
(%i2) f(x) := ''(rhs(e))$  <-- two single quotes does the needed evaluation
(%i3) f(a);
(%o3) 2*a-2
(%i4) f(a+b);
(%o4) 2*(b+a)-2
(%i5) f(42);
(%o5) 82

Barton