solve
is a function working on symbolic expressions. Polynomials on RR
as defined in your example, are not symbolic expressions. The set of operations applicable to them is different. And, BTW, symbolic expressions do have a method solve
(not to be confused with the function solve
), but not lists nor sequences…
Your question will find (a lot of) answer elements in chapter 9 of this excellent book, which I recommend to anyone aiming at non-trivial Sagemath use…
HTH,