For rational functions you'd rather want to work with polynomials, not (symbolic) functions. sage: R.<x>=QQ[] sage: q=(x^2+4*x+4)/(x+2)^2 sage: q 1 sage: q=(x^2+4*x+4)/(x+2)^3 sage: q 1/(x + 2) sage: q.parent() Fraction Field of Univariate Polynomial Ring in x over Rational Field
On Thursday, December 29, 2016 at 9:48:00 AM UTC, Ingo Dahn wrote: > > Hi, > I am not sure what *simplify *does. For example > > q=(x^2+4*x+4)/(x+2)^2 > simplify(q) > > doesn't do any simplification, while > factor(q) yields 1. > > According to tab completion SageCell doesn't seem to support any other > form of *simplify*. Is there any strategy to combine Sage commands in > order to simplify rational function expressions? > Ingo > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.