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?
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.