On Sun, Feb 26, 2012 at 4:59 PM, Joel B. Mohler <[email protected]> wrote: > On Feb 26, 7:35 pm, "Joel B. Mohler" <[email protected]> wrote: >> After having been a heavy sage user for several years, I now have >> virtually not touched it for several more years. Returning now on a >> lark, I'm feeling rather confused because I'd think the following >> would obviously work. My goal is to factor a bunch of Gaussian >> integers. >> >> sage: K.<I>=QuadraticField(-1) >> sage: ((I+1)*(I+1)).factor() >> --------------------------------------------------------------------------- >> AttributeError Traceback (most recent call >> last) >> /home/joel/.sagelocalrc.py in <module>() >> AttributeError: 'sage.rings.number_field.number_field_element_quadr' >> object has no attribute 'factor' > > Ok, to answer myself, this appears to work in the cell server on the > sage front page, but does not work in my old install of version 4.3. > Therefore I conclude that I need to upgrade. However, I'm still quite > baffled that this didn't work in sage 4.3.
Any serious number theorist (i.e., most Sage users who would want to do this sort of thing before 2009?) would have just done: sage: K.<I>=QuadraticField(-1) sage: a = K.ideal( ((I+1)*(I+1))) sage: a.factor() (Fractional ideal (I + 1))^2 -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
