On Mar 16, 2:23 am, "Nick Alexander" <[EMAIL PROTECTED]> wrote: > Is this because of precision issues? In that case, I still think this > should return [(1.0000..., 1), (1.0000...., 1)] and be documented as > such. > > sage: (CC(1)*(x-1)**2).roots() > [1.00000000000000, 1.00000000000000] > > sage: ((x-1)**2).roots() > [(1, 2)]
2 here refers to multiplicity. The result of roots() are fine, it's the behavior accross fields that is inconsistent. The docs for roots() over QQ say: {{{ Return all roots of this polynomial. INPUT: multiplicities -- bool (default: True, except over RR or CC) if True return list of pairs (r, n), where r is the root and n is the multiplicity. }}} HTH, didier --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---