1 | initial version |
You can use the roots
method and specify that you want the results as complex numbers (say as elements of CC
in Sage):
sage: eq = 9.0*x^6 + 4*x^4 + 3*x^3 + x - 17 == 0
sage: eq.roots(x, ring=CC, multiplicities=False)
[-1.10301507262981,
1.00000000000000,
-0.491102035999093 - 0.988331495372071*I,
-0.491102035999093 + 0.988331495372071*I,
0.542609572314000 - 1.05431152068711*I,
0.542609572314000 + 1.05431152068711*I]