On Mar 26, 2007, at 3:57 PM, Timothy Clemans wrote:
> > Apparently I was incorrectly defining x as an integer, however, I did > not get an error the first I tried. > > incorrect way: x = PolynomialRing(ZZ) > correct way: g.<x> = PolynomialRing(ZZ) > > The len method works now. Thanks. Be careful though: sage: R.<x> = PolynomialRing(ZZ) sage: f = 2*x^2 + 4*x + 8 sage: f.factor() 2 * (x^2 + 2*x + 4) sage: len(f.factor()) 2 David --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@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-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~----------~----~----~----~------~----~------~--~---