answered 10 years ago
Use polynomials over the complex ring CC:
sage: R.<x> = CC[] sage: p=x^2+2 sage: p.factor() (x - 1.41421356237310*I) * (x + 1.41421356237310*I)