Hi, A friend of mine wants to factorize symbolicly x^2 - 2 :
sage: p = x^2 - 2 sage: p.factor() x^2 - 2 Apparently p.roots() gives almost what he wants : sage: p.roots() [(-sqrt(2), 1), (sqrt(2), 1)] So, I just proposed him to do : sage: Factorization([(x-r,m) for r,m in p.roots()]) (x - sqrt(2)) * (x + sqrt(2)) Do any of you have a better solution? Thank you, Sébastien Labbé, Montpellier -- 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