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?
1 | initial version |
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?
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?