Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Obtaining the polynomial given its list of coefficients while using SageMath as an imported library in python

Hi, I have imported the SageMath library in my python code.

If I have a list [1,5,4,5,22,0,0,1] And I need to generate a 7th degree polynomial from this, how should I proceed?

I tried using the methods given online, but it either crashes or gives me a clearly wrong answer ( I'm trying to find all the real roots by using real_roots() or roots() )

Any help would be appreciated.