1 | initial version |
You should work in a polynomial ring rather than in the symbolic ring.
sage: f = -54.0*I*x**27 + (-202.5 - 584.567147554496*I)*x**15 + (1.62379763209582 + 2.0625*I)*x**3
sage: R.<x> = PolynomialRing(CDF)
sage: ff = R(f)
sage: ff
-54.0*I*x^27 + (-202.5 - 584.567147554496*I)*x^15 + (1.62379763209582 + 2.0625*I)*x^3
sage: ff.roots()
[(0.0, 3),
(-1.1919725914270978 - 0.2841390355028779*I, 1),
(-1.1743480625420717 + 0.34991467276124905*I, 1),
(-0.8902090270391978 - 0.8420579186658488*I, 1),
(-0.8420579186658474 + 0.8902090270391964*I, 1),
(-0.6340537082641279 + 0.017624528885021636*I, 1),
(-0.5579188831629703 - 0.3017635643879005*I, 1),
(-0.5402943542779494 + 0.33229014387622624*I, 1),
(-0.349914672761249 - 1.1743480625420724*I, 1),
(-0.33229014387622624 - 0.5402943542779503*I, 1),
(-0.30176356438790186 + 0.5579188831629743*I, 1),
(-0.2841390355028765 + 1.1919725914270942*I, 1),
(-0.017624528885021612 - 0.6340537082641236*I, 1),
(0.01762452888502454 + 0.6340537082641229*I, 1),
(0.2841390355028755 - 1.1919725914270927*I, 1),
(0.3017635643878972 - 0.5579188831629707*I, 1),
(0.33229014387622324 + 0.5402943542779469*I, 1),
(0.3499146727612491 + 1.1743480625420757*I, 1),
(0.5402943542779478 - 0.332290143876229*I, 1),
(0.5579188831629693 + 0.3017635643879034*I, 1),
(0.6340537082641288 - 0.017624528885022077*I, 1),
(0.8420579186658496 - 0.8902090270392002*I, 1),
(0.8902090270391977 + 0.8420579186658482*I, 1),
(1.174348062542071 - 0.34991467276124827*I, 1),
(1.1919725914270973 + 0.28413903550287867*I, 1)]