On 24 February 2010 07:13, Dima Pasechnik <dimp...@gmail.com> wrote: > it's an easy to fix bug in squarefree_decomposition in sage/rings/ > polynomial/polynomial_element.pyx, line 1142 > I can fix it if there are no takers... >
Please do. and while you are there, could you address the related problem suggested by your title: sage: x = polygen(QQbar) sage: f = x^2-1 sage: f.factor() --------------------------------------------------------------------------- NotImplementedError ? Should be easy since we have f.roots(), but there might be some surprises: Factorization([(x-r,e) for r,e in f.roots()]) works but forgets the leading coefficient. And Factorization([(x-r,e) for r,e in f.roots()], unit = f.leading_coefficient()) fails for reasons I don't have time right now to look into. John > Dima > > On Feb 24, 1:30 pm, Tom Boothby <tomas.boot...@gmail.com> wrote: >> I just put this up on trac, but I'm not sure I put it in the right >> category, so I'm posting this here for more visibility. >> >> Punchline: >> >> sage: f = QQbar['x'](1) >> sage: f.roots() >> ... >> IndexError: list index out of range >> sage: >> >> Ticket:http://trac.sagemath.org/sage_trac/ticket/8344 > > -- > To post to this group, send an email to sage-devel@googlegroups.com > To unsubscribe from this group, send an email to > sage-devel+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/sage-devel > URL: http://www.sagemath.org > -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org