| 1 | initial version |
Just a command to convert to polynomial fraction is needed additionally:
sage: g1=1+ (s^2) ; g2=g1.subs(s= 1/(z-1) ) ; g2.expand().fraction(QQ)
(z^2 - 2*z + 2)/(z^2 - 2*z + 1)
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.