Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

given a list of coefficients how can I get a polynomial

In sage,

given a list/vector v of coefficients, how can I get the polynomial v[i]*x^i ?

Here is my environment;

n = 11
K = GF(4,'a')
R = PolynomialRing(GF(4,'a'),"x")
x = R.gen()
a = K.gen()
v = vector([1,a,0,0,1,1,1,a,a,0,1])

I want to get the polynomial v(x) in x, having v as the list of coefficients. This seems simple but I couldn't write it... Can anyone help?