Ask Your Question

Revision history [back]

Composite function: how to show function names instead of its full expression?

Suppose I define a function "f(x)=x*2" and a function "g(y)=f(y)+2y".

When I type show(g) the output is: "y*2 +2y".

What should I do to have the 'show' output as "f(y)+2*y" instead?

Composite function: how to show function names instead of its full expression?

Suppose I define a function "f(x)=x*2" f(x) = x**2 and a function "g(y)=f(y)+2y". g(y) = f(y) + 2*y.

When I type show(g) show(g) the output is: "y*2 +2y".y**2 +2*y.

What should I do to have the 'show' show output as "f(y)+2*y" f(y) + 2*y instead?