On Thu, Dec 17, 2009 at 10:29 AM, ma...@mendelu.cz <ma...@mendelu.cz> wrote: > Thanks! Is there faster way how to tell Sage that we want to divide > polynomials than these commands? I mean, if the third line can be > omitted. > > p=x^2+x+5 > q=x-4 > R.<x>=QQ[] > R(p).quo_rem(q)
No. But you have the order a little wrong (though what you write will work). It should be: R.<x> = QQ[] # or x = polygen(QQ) p = x^2 + x + 5 q = x - 4 p.quo_rem(q) William -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org