Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I want to extract all coefficients of a given polynomial including the nul coefficients of the polynomial.

I tried this R.<x>=QQ[] f=x^4-x^2+1 A=f.coeffients() A

The answer give [1,-1,1] But I want to get [1,0,-1,0,1]

Help please

I want to extract all coefficients of a given polynomial including the nul coefficients of the polynomial.

I tried this R.<x>=QQ[] f=x^4-x^2+1 A=f.coeffients() Athis

R.<x> = QQ[]
f = x^4 - x^2 + 1
A = f.coeffients()
A

The This gave the answer give [1,-1,1] [1, -1, 1]. But I want to get [1,0,-1,0,1]

Help please[1, 0, -1, 0, 1].

I want to extract all coefficients of a given polynomial including the nul coefficients of the polynomial.

I tried this

R.<x> = QQ[]
f = x^4 - x^2 + 1
A = f.coeffients()
A

This gave the answer [1, -1, 1]. But I want to get [1, 0, -1, 0, 1].

Coefficients of a polynomial including zero coefficients

I want to extract all obtain the list of coefficients of a given polynomial polynomials, including the nul coefficients of the polynomial.zero coefficients.

I tried this

R.<x> = QQ[]
f = x^4 - x^2 + 1
A = f.coeffients()
f.coefficients()
A

This gave the answer [1, -1, 1]. But I want to get [1, 0, -1, 0, 1].

Coefficients of a polynomial including zero coefficients

I want to obtain the list of coefficients of a polynomials, including the zero coefficients.

I tried this

R.<x> = QQ[]
f = x^4 - x^2 + 1
A = f.coefficients()
A

This gave the answer [1, -1, 1]. But I want to get [1, 0, -1, 0, 1].